feat: 新增数据mock,数据字段映射

This commit is contained in:
奔跑的面条
2024-12-22 12:51:02 +08:00
parent 152786c652
commit 3ae9aac2d9
11 changed files with 153 additions and 108 deletions
@@ -12,9 +12,9 @@ export const option: IBarOption & { dataset?: any } = {
// 图表配置
type: 'bar',
dataset: data,
xField: 'State',
yField: 'Population',
seriesField: 'Age',
xField: ['type'],
yField: ['value'],
seriesField: 'year',
stack: true,
// 业务配置(后续会被转换为图表spec)
category: VChartBarStackConfig.category,