feat: 泡泡玛特增加年度、半年数据区分

This commit is contained in:
2026-08-30 14:49:27 +08:00
parent d010b107aa
commit d51890a450
69 changed files with 1109 additions and 258 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ for (const entry of targets) {
if (!csvPath.startsWith(`${ROOT}${path.sep}`)) throw new Error(`CSV 路径越过项目根目录:${entry.csv}`);
const rows = parseCSV(fs.readFileSync(csvPath, 'utf8'));
const chart = echarts.init(null, null, { renderer: 'svg', ssr: true, width: 1100, height: 720 });
const option = getChartBuilder(entry.key)(rows, { width: 1100, height: 720 });
const option = getChartBuilder(entry.key)(rows, { width: 1100, height: 720, view: entry.view || undefined });
chart.setOption(option);
const svg = chart.renderToSVGString();
chart.dispose();