antvis / antvis/G2Plot

🐛 [BUG] 堆叠柱状图总计在筛选图例后不会自动更新

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

堆叠柱状图总计在无任何筛选条件的情况下,展示如下
![image](https://user-images.githubusercontent.com/32855518/167361305-6cd11c73-9614-4379-aa81-53ff67b032e4.png)

当进行图例筛选后,总计数值不会根据筛选条件进行更新
![image](https://user-images.githubusercontent.com/32855518/167364227-fbf7abf3-ecee-4307-9b18-b37c3d5aafa1.png)

### 📷 Step to reproduce

官方示例:https://g2plot.antv.vision/zh/examples/column/stacked#annotation-label
点击右侧图例进行筛选

### 🏞 Expected result

当用户点击图例进行筛选后,总计数值可重新计算,并展示在柱状图顶端
![image](https://user-images.githubusercontent.com/32855518/167363644-37ef732c-ca12-4b77-858b-bd5b1f1ee06a.png)

### 🚑 Any additional

* **G2Plot Version**: 2.4.16
* **Platform**: Google Chrome 101.0.4951.54(正式版本) (64 位)

Contributor guide

Open the contributing guide

Research direction

Start with the official stacked-column annotation-label example linked in the issue and reproduce the problem by clicking a legend item. Trace how legend filtering affects the displayed total annotation; done means the total is recalculated and shown at the top of the stacked column after filtering.

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.