antvis / antvis/L7Plot

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

Open
#274 1 comment 0 reactions 0 assignees View on GitHub
feature
Dominant language
TypeScript
Stars
91
Forks
21
PR merge metrics
No merged PRs in 30d

Description

目前Choropleth区域图的label,默认都是全部展示.
![image](https://user-images.githubusercontent.com/44153856/220043969-2393a65f-f8e6-4926-ae0b-83d52e67f723.png)
但是有时候我们只希望传入的数据,展示label。
目前我的做法是给传入的数据新增一个字段叫dimensionName,然后把label的字段映射成dimensionName,从而实现只展示有数据的label。
![image](https://user-images.githubusercontent.com/44153856/220044774-f9de1f4b-2a2a-40fc-a91a-f335fe3cee40.png)
希望可以给Label添加一个属性
![image](https://user-images.githubusercontent.com/44153856/220045020-b8ab6335-a9d3-4f96-a955-8e0d09fc3699.png)

Contributor guide

Open the contributing guide

Research direction

Start at the Choropleth label configuration and the data-to-label mapping described in the issue. Define how the requested label property distinguishes all regions from regions with data, then verify that labels appear only for populated regions while the existing default behavior remains available.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.