饼图/环形图 在所有数据都为0时图表空白不展示
- Dominant language
- JavaScript
- Stars
- 8k
- Forks
- 637
- PR merge metrics
- No merged PRs in 30d
Description
- [ ] I have searched the [issues](https://github.com/antvis/f2/issues) of this repository and believe that this is not a duplicate.
### Reproduction link
[](https://codesandbox.io/s/54b7u3)
### Steps to reproduce
官网的饼图示例把所有的数值改成0也可以复现;

| Environment | Info |
|---|---|
| f2 | 5.0.14 |
| System | MacBook Pro 12.2.1 |
| Browser | 108.0.5359.124(正式版本) |
---
期望:所有数值为0时图表可以等分展示。
Contributor guide
Research direction
Start with the CodeSandbox reproduction link and the official pie-chart example using F2 5.0.14, then reproduce the blank chart with all values set to zero. Trace the pie or donut chart rendering path to identify the zero-value handling. Done means zero-valued data is rendered as evenly divided slices.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100