Skip to content

Commit

Permalink
fix(map): fix some labels don't show when legend is enabled and no la…
Browse files Browse the repository at this point in the history
…bel formatter specified, resolves #15649.
  • Loading branch information
plainheart committed Jan 4, 2022
1 parent 3b6d01a commit b5bc376
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/chart/map/MapView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down
48 changes: 47 additions & 1 deletion test/map-china.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b5bc376

Please sign in to comment.