antvis / antvis/G2Plot

🐛 [BUG] Pie/Donut/sunburst/stack pie chart render as blank if the value difference in data is huge

Open
#3,875 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 [Please make everyone to understand it]

Image

* _Required_ **Link to minimal reproduction**: https://g2plot.antv.antgroup.com/en/examples/pie/basic/#basic

### 📷 Step to reproduce: As in the screenshot, pie chart fails to render if the difference in the angle values in the data is huge. example for data -
const data = [
{ type: 'Category1', value: 15623893765821.97 },
{ type: 'Category2', value: 2453.72 }
];

### 🏞 Expected result- chart should render, category2 will not be visible but it will be present in the legend and should allow other features like enabling particular legend value

* **G2Plot Version**: 2.4.25
* **Platform**: windows 11, chrome 144.0.7559.133

Contributor guide

Open the contributing guide

Research direction

Start with the linked G2Plot pie-chart minimal reproduction and reproduce the blank rendering using the provided extreme-value data. Trace the rendering path shared by pie, donut, sunburst, and stack pie charts; done means the chart renders, the tiny category remains in the legend, and legend interactions still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.