Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🥰 Label支持展示全部区域或者有数据的区域 #274

Open
aimerthyr opened this issue Feb 20, 2023 · 1 comment
Open

🥰 Label支持展示全部区域或者有数据的区域 #274

aimerthyr opened this issue Feb 20, 2023 · 1 comment
Labels

Comments

@aimerthyr
Copy link
Contributor

目前Choropleth区域图的label,默认都是全部展示.
image
但是有时候我们只希望传入的数据,展示label。
目前我的做法是给传入的数据新增一个字段叫dimensionName,然后把label的字段映射成dimensionName,从而实现只展示有数据的label。
image
希望可以给Label添加一个属性
image

@lvisei
Copy link
Member

lvisei commented Feb 20, 2023

首先 Choropleth 内置了一份地理数据,这个 name 就是全量地理数据中的字段,地理数据和你的业务数据关联的过程后,应该展示有业务数据的 label,如果要展示全国的 label 应该单独一个图层叠加来实现,showArea 应不应该加是要考虑的

@lvisei lvisei added the feature label Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants