antvis / antvis/G2Plot

🐛 [BUG] Funnel 漏斗图 legend 图例 筛选后恢复时显示错误 click legend to filter data. but wrong when cancel filter;

Open
#3,870 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

几乎可以直接使用文档上的 [漏斗图](https://g2plot.antv.antgroup.com/zh/examples/more-plots/funnel/#basic) 复现
只需要打开legend,即legend: true 后,点击第一个图例两次以打开再关闭这个数据的筛选;

初始:
Image
筛选打开并关闭后
Image

可以看到最顶上的数据的形状从梯形变成了长方形,59%的比例显示错误了

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.