提交 e161c8ff authored 作者: junjie's avatar junjie

refactor(视图):去除矩形树图图例

上级 67e89d06
...@@ -50,6 +50,9 @@ export function componentStyle(chart_option, chart) { ...@@ -50,6 +50,9 @@ export function componentStyle(chart_option, chart) {
chart_option.legend.orient = customStyle.legend.orient chart_option.legend.orient = customStyle.legend.orient
chart_option.legend.icon = customStyle.legend.icon chart_option.legend.icon = customStyle.legend.icon
chart_option.legend.textStyle = customStyle.legend.textStyle chart_option.legend.textStyle = customStyle.legend.textStyle
if (chart.type === 'treemap') {
chart_option.legend.show = false
}
} }
if (customStyle.xAxis && (chart.type.includes('bar') || chart.type.includes('line') || chart.type.includes('scatter'))) { if (customStyle.xAxis && (chart.type.includes('bar') || chart.type.includes('line') || chart.type.includes('scatter'))) {
chart_option.xAxis.show = customStyle.xAxis.show chart_option.xAxis.show = customStyle.xAxis.show
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论