Merge pull request #5262 from dataease/pr@dev@fix_map_title

fix(地图): 缺失维度指标的情况下标题也无法显示#5172
This commit is contained in:
fit2cloud-chenyw 2023-05-22 13:05:58 +08:00 committed by GitHub
commit a5893cec20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,9 +83,9 @@ export function baseMapOption(chart_option, chart, themeStyle, curAreaCode, seri
chart_option.tooltip.borderColor = bgColor
}
}
chart_option.title.text = chart.title
// 处理data
if (chart.data) {
chart_option.title.text = chart.title
if (chart.data.series && chart.data.series.length > 0) {
chart_option.series[0].name = chart.data.series[seriesIndex].name
chart_option.series[0].selectedMode = true