diff --git a/src/chart/map/MapView.ts b/src/chart/map/MapView.ts index 1e0dff4b28..84145b920e 100644 --- a/src/chart/map/MapView.ts +++ b/src/chart/map/MapView.ts @@ -173,7 +173,8 @@ class MapView extends ChartView { getFormattedLabel(idx: number, state: DisplayState) { return mapModel.getFormattedLabel(fullIndex, state); } - } + }, + defaultText: name }); (circle as ECElement).disableLabelAnimation = true; if (!labelModel.get('position')) { diff --git a/test/map-china.html b/test/map-china.html index 76878b42de..34ec28fd64 100644 --- a/test/map-china.html +++ b/test/map-china.html @@ -39,6 +39,7 @@
+ @@ -119,7 +120,52 @@ }); - +