🐛 [BUG]带有缩略轴的双轴图,左轴为柱状图,右轴为折线图时,x轴坐标不同步
- 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]
demo: https://codesandbox.io/s/black-wood-947me1
移动缩略轴或者resize之后会恢复正常,
可以直接戳 https://947me1.csb.app/ 复现,
最左侧的柱和线在x轴上基本对齐,但是最右侧的柱和线在x轴上已经有较大偏移,同时也导致hover时候的tooltip错误
> 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.
* _Required_ **Link to minimal reproduction**:
### 📷 Step to reproduce
### 🏞 Expected result
### 🚑 Any additional [like screenshots]
* **G2Plot Version**: 2.4.16
* **Platform**:
Contributor guide
Research direction
Start by running the linked CodeSandbox reproduction with G2Plot 2.4.16 and compare the dual-axis bar-and-line chart before and after moving the thumbnail axis or resizing. Trace the chart's initial x-axis positioning and tooltip behavior; done means the bar and line positions align and hover tooltips remain correct without requiring interaction or resizing.
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
- Mostly clear
- Newbie friendliness
- 30/100