🐛 [BUG] 通用型问题:x轴设置为数值型 && x 为一位数,图表会展示不完整
Open
Bug
Scale
- 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]
当x 轴设置为一位数的数字,最后一个标签会不展示,但是设置为2位数及以上就没问题,甚至是小数也没问题
有问题的图表:折线图、柱状图、区间柱状图、百分比柱状图、瀑布图、气泡图、子弹图
复现:https://codesandbox.io/s/boring-engelbart-13gch?file=/index.ts
* **G2Plot Version**: 2.3.40
* **Platform**: g2plot 2.x
Contributor guide
Research direction
Start by reproducing the one-digit numeric x-axis case from the linked CodeSandbox at index.ts with G2Plot 2.3.40. Compare the line, bar, interval bar, percent bar, waterfall, bubble, and bullet charts to identify the shared axis behavior; done means the final label is displayed correctly for each affected chart.
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
- 35/100