Merge pull request #11932 from dataease/pr@dev-v2@chart-map-fix

fix(图表-地图): 修复地图空值处理隐藏空值时,图表无法正常显示的问题
This commit is contained in:
jianneng-fit2cloud 2024-09-03 10:32:38 +08:00 committed by GitHub
commit fb2ca97603
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,7 +72,7 @@ export abstract class L7PlotChartView<
if (data[i].value === null) {
data.splice(i, 1)
}
for (let j = data[i].dynamicTooltipValue?.length - 1; j >= 0; j--) {
for (let j = data[i]?.dynamicTooltipValue?.length - 1; j >= 0; j--) {
if (data[i].dynamicTooltipValue[j].value === null) {
data[i].dynamicTooltipValue.splice(j, 1)
}