Merge pull request #780 from dataease/pr@v1.2@refactor_treemap_legend

refactor(视图):去除矩形树图图例
This commit is contained in:
XiaJunjie2020 2021-09-07 14:14:16 +08:00 committed by GitHub
commit 437507d3be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,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_option.xAxis.show = customStyle.xAxis.show