子弹图changeData时,特殊情况下rangeField的label超出绘制区域导致看不见🐛 [BUG]
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 591
- PR merge metrics
- No merged PRs in 30d
Description
### 🐛 Bug description
> link: https://codesandbox.io/s/elastic-tereshkova-3cpwlw?file=/index.ts
### 📷 Step to reproduce and screenshots
前后两次changeData时,targetField的值一样,且前一次rangeField内的值为0,
后一次rangeField的值显示超出了绘制区域,需要更大的padding才能露出来。


### 🏞 Expected result
* **G2Plot Version**: 2.4.19
* **Platform**:
Contributor guide
Research direction
Start with the linked CodeSandbox reproduction and inspect the bullet chart behavior when changeData is called with the same targetField and a previous rangeField value of 0. Trace how the rangeField label is positioned; done means the label remains visible within the drawing area without requiring extra padding.
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