diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/map/bubble-map.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/map/bubble-map.ts index 41223ca4d4..6a7e0e67de 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/map/bubble-map.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/map/bubble-map.ts @@ -402,7 +402,8 @@ export class BubbleMap extends L7PlotChartView { content.push(name) } if (label.showQuota) { - areaMap[name] && content.push(valueFormatter(areaMap[name], label.quotaLabelFormatter)) + ;(areaMap[name] || areaMap[name] === 0) && + content.push(valueFormatter(areaMap[name], label.quotaLabelFormatter)) } item.properties['_DE_LABEL_'] = content.join('\n\n') } diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts index 418c82a41a..a2b5a0a462 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/map/map.ts @@ -301,7 +301,8 @@ export class Map extends L7PlotChartView { content.push(name) } if (label.showQuota) { - areaMap[name] && content.push(valueFormatter(areaMap[name], label.quotaLabelFormatter)) + ;(areaMap[name] || areaMap[name] === 0) && + content.push(valueFormatter(areaMap[name], label.quotaLabelFormatter)) } item.properties['_DE_LABEL_'] = content.join('\n\n') } @@ -508,7 +509,7 @@ export class Map extends L7PlotChartView { content.push(area.name) } if (label.showQuota) { - areaMap[area.name] && + ;(areaMap[area.name] || areaMap[area.name] === 0) && content.push(valueFormatter(areaMap[area.name].value, label.quotaLabelFormatter)) } labelLocation.push({