🐛 [BUG] Pie - 设置分页>切换至最后一页>点击legend item>触发filter事件>图表会位置闪动
Open
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]
Pie - 设置分页>切换至最后一页>点击legend item>触发filter事件>图表会位置闪动,再切换成其他页码触发filter事件,图表又会闪动回原来的位置
重现demo: https://stackblitz.com/edit/react-8swscx?file=index.js ,用的是官方的demo,自己只加了legend field设置
### 🏞 Expected result
期望切换页码时,图表位置不会闪动
Contributor guide
Research direction
Start with the linked StackBlitz reproduction in index.js and reproduce the Pie chart behavior using pagination, the legend field, and the filter event. Trace the chart position while switching to the last page and clicking a legend item; done means page changes and filter events no longer cause the chart to visibly jump.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100