antvis / antvis/G2Plot

🐛 [BUG] DualAxes slider does not correctly draw geometries when initial range is defined

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

**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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.