🐛 [BUG]饼图的标签,当饼图的标签为spider时,设置formatter时,会报错
- 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]


* **G2Plot Version**: 2.3.26
Contributor 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