feat: 泡泡玛特增加年度、半年数据区分
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user