antvis / antvis/G2Plot

🐛 [BUG]饼图的标签,当饼图的标签为spider时,设置formatter时,会报错

Open
#2,709 0 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Bug description
当饼图的type为spider时,设置formatter中为空字符串时报错。当type为其他类型时,正常。

### 💻 Link to minimal reproduction

https://gyej1.csb.app/

### 🚑 Any additional [like screenshots]
![8121627291445_ pic_hd](https://user-images.githubusercontent.com/37700655/126966344-6e2de054-ce6a-4709-953f-287da961c9f4.jpg)
![8131627291492_ pic_hd](https://user-images.githubusercontent.com/37700655/126966360-1a1b7d25-940d-45e1-99dd-6ced627ffe7f.jpg)

* **G2Plot Version**: 2.3.26

Contributor guide

Open the contributing guide

Research direction

Start with the linked minimal reproduction and compare pie-chart label behavior when type is spider versus other types. Reproduce the error with an empty formatter on G2Plot 2.3.26, then trace the relevant chart-label handling in the repository. Done means spider labels accept the empty formatter without an error and the existing behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.