Skip to content

Commit 76b974d

Browse files
committed
feat: 更新图表组件的数据变化选项以支持柱状图
1 parent bca7b2a commit 76b974d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/MarkdownEditor/editor/elements/chart/ChartRender.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ const ChartMap = {
1818
},
1919
line: {
2020
title: '折线图',
21-
changeData: ['column', 'line', 'area', 'table'],
21+
changeData: ['column', 'bar', 'area', 'table'],
2222
},
2323
column: {
2424
title: '柱状图',
25-
changeData: ['column', 'line', 'area', 'table'],
25+
changeData: ['bar', 'line', 'area', 'table'],
2626
},
2727
area: {
2828
title: '面积图',
29-
changeData: ['column', 'line', 'area', 'table'],
29+
changeData: ['column', 'bar', 'line', 'table'],
3030
},
3131
table: {
3232
title: '表格',
33-
changeData: ['column', 'line', 'area', 'table', 'pie'],
33+
changeData: ['column', 'line', 'area', 'pie'],
3434
},
3535
descriptions: {
3636
title: '定义列表',

0 commit comments

Comments
 (0)