antvis / antvis/G2Plot

🐛 [BUG]饼图分页设置的时候,如果当前画框大小小的时候,分页会计算失败

Open
#3,808 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]
https://g2plot.antv.antgroup.com/zh/examples/pie/basic/#basic
这是我拿的官网的演示地址
这是我修改的代码
https://codesandbox.io/s/z5q3pt
当视图缩放比较小的时候就会导致分页计算错误
这个是正常显示
![image](https://github.com/user-attachments/assets/38bddd8d-5b6f-469a-953a-eb2bf25700fd)
这个是缩放比较的时候显示
![image](https://github.com/user-attachments/assets/d4c337a0-fd71-4928-bc25-4696fba9443e)

> Please provide a link by forking these links [G2Plot](https://codesandbox.io/s/g2plot-issue-template-gzfdq?file=/index.ts) or GitHub repo, a minimal reproduction.

* _Required_ **Link to minimal reproduction**:

### 📷 Step to reproduce

### 🏞 Expected result

### 🚑 Any additional [like screenshots]

* **G2Plot Version**:
* **Platform**:

Contributor guide

Open the contributing guide

Research direction

Start with the linked G2Plot pie basic example and the CodeSandbox reproduction, then compare pagination behavior at normal and reduced view sizes. Done means pagination calculates and displays correctly when the chart view is small.

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
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.