antvis / antvis/G2Plot

🐛 [BUG] 多图层图表,图例legend设置selected不生效

Open
#3,484 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 [Please make everyone to understand it]
在多图层图标的图例legend中,添加selected属性不生效
> Please provide a link by forking these links [G2Plot](https://codesandbox.io/s/g2plot-issue-template-gzfdq?file=/index.ts) or GitHub repo, a minimal reproduction.
https://codesandbox.io/s/p4lmfj?file=/index.ts
* _Required_ **Link to minimal reproduction**:

### 📷 Step to reproduce

### 🏞 Expected result

### 🚑 Any additional [like screenshots]
![image](https://user-images.githubusercontent.com/55747701/222363674-a0e77545-8b2c-471e-b79d-e68a1bb5b2bf.png)

* **G2Plot Version**:
* **Platform**:

Contributor guide

Open the contributing guide

Research direction

Start with index.ts in the linked CodeSandbox reproduction and verify the multi-layer chart's legend configuration, especially the selected property. Trace how that configuration is applied when the chart renders. Done means the selected setting takes effect in the reproduction and the legend displays the expected layer state.

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
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.