🐛 [BUG] DualAxes slider does not correctly draw geometries when initial range is defined
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 591
- PR merge metrics
- No merged PRs in 30d
Description
### 🐛 Bug description
**Link to minimal reproduction**: https://codesandbox.io/s/g2plot-issue-template-forked-3qtet?file=/index.ts
When `start` is set in slider only one geometry is drawn. If you then touch the slider the second geometry reappears.
### 📷 Step to reproduce
1. Take https://g2plot.antv.vision/en/examples/dual-axes/column-line#slider-column-line as an example
2. Add `start: 0.7` to slider
3. Slider sets correct range but only one geometry is drawn
### 🏞 Expected result
Plot should draw both geometries
* **G2Plot Version**: 2.3.40
* **Platform**: G2Plot examples
Contributor guide
Research direction
Start with the linked CodeSandbox reproduction in index.ts and compare it with the dual-axes column-line example using slider start: 0.7. Reproduce the initial render and then move the slider; done means both geometries are drawn correctly before and after interaction.
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
- 45/100