🐛 [BUG] 多图层图表,图例legend设置selected不生效
- 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]

* **G2Plot Version**:
* **Platform**:
Contributor 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