forked from github/dataease
refactor(视图):去除矩形树图图例
This commit is contained in:
parent
2bcb9e8a07
commit
996185995a
@ -51,6 +51,9 @@ export function componentStyle(chart_option, chart) {
|
||||
chart_option.legend.orient = customStyle.legend.orient
|
||||
chart_option.legend.icon = customStyle.legend.icon
|
||||
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') || chart.type === 'chart-mix')) {
|
||||
chart_option.xAxis.show = customStyle.xAxis.show
|
||||
|
Loading…
Reference in New Issue
Block a user