antvis / antvis/G2Plot

🐛 [BUG] g2plot 当legend和annotations同时使用时,切换legend标签,标注无法消失

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

### 🐛 当legend和annotations同时使用时,如果切换legend标签,会导致annotations上面的标注没有跟着legend标签消失

#
![Snipaste_2023-08-15_17-41-02](https://github.com/antvis/G2Plot/assets/3435267/66afb273-0d8e-4a03-9c58-4d6b0f907b9b)

Contributor guide

Open the contributing guide

Research direction

No source file, test, or reproduction code is identified in the issue. Start by creating or locating a chart that uses both legend and annotations, then reproduce toggling a legend label and verify whether the annotation disappears with the corresponding data; done means the annotation follows the legend visibility state.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.