apache / apache/echarts

[Feature] map系列关联geo后无法覆盖label

Open
#21,318 4 comments 0 reactions 0 assignees View on GitHub
new-feature pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?

想要在地图上面显示自定义label,例如“广东/n项目数量:68”,简单场景下,直接在type:'map'里面设置label的formatter可以实现。

![Image](https://github.com/user-attachments/assets/af605f5a-6989-4bd5-91c5-85bdfa5d1c02)

但同时还想添加type:'scatter'来显示各个项目的位置,所以需要把两个series都关联到geo。这就导致地图显示的是geo的label,只有省市名称。
即便把geo的label设置show:false,把type:'map'的label设置show:true,也不能显示series里的自定义label。请问有解决方案吗?

### What does the proposed API look like?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.