🐛 [BUG] Funnel 漏斗图 legend 图例 筛选后恢复时显示错误 click legend to filter data. but wrong when cancel filter;
Open
Bug
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 591
- PR merge metrics
- No merged PRs in 30d
Description
### 🐛 Bug description
几乎可以直接使用文档上的 [漏斗图](https://g2plot.antv.antgroup.com/zh/examples/more-plots/funnel/#basic) 复现
只需要打开legend,即legend: true 后,点击第一个图例两次以打开再关闭这个数据的筛选;
初始:
筛选打开并关闭后
可以看到最顶上的数据的形状从梯形变成了长方形,59%的比例显示错误了
Contributor guide
Research direction
Start with the documentation funnel example linked in the issue and reproduce the problem with legend: true by clicking the first legend item twice. Inspect the legend filtering and funnel rendering entry points reached by that example. Done means the chart returns to its initial trapezoid shape and the 59% value is displayed correctly after the filter is cancelled.
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
- 48/100