箱线图x轴标签显示异常
- Dominant language
- TypeScript
- Stars
- 12.6k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
### 问题描述
x轴分组在交互显隐时,会隐藏非相关的轴文案,再重新点击显示相关时倒是能正常恢复
### 重现链接
https://codesandbox.io/p/sandbox/5g4rv7
### 重现步骤
1. 点击交互 'I. versicolor' 隐藏相关箱线图
2. X轴 PetalWidth 文案消失了
3. 点击交互 'I. virginica' 隐藏相关箱线图
4. X轴 PetalWidth3 文案消失了
5. 点击交互 'I. virginica' 显示相关箱线图
6. X轴 PetalWidth、PetalWidth3 文案都恢复正常了
### 预期行为
1. 点击交互 'I. versicolor' 隐藏相关箱线图
2. 仅X轴 SepalWidth 文案消失,(PetalWidth 文案不受影响)
3. 点击交互 'I. virginica' 隐藏相关箱线图
4. 仅X轴 PetalWidth 文案消失,(PetalWidth3 文案不受影响)
5. 点击交互 显示相关箱线图
6. 相关的X轴 文案都恢复正常
### 平台
- 操作系统: [macOS]
- 网页浏览器: [Google Chrome]
### 屏幕截图或视频(可选)

### 补充说明(可选)
官方案例改造而来
https://g2.antv.antgroup.com/zh/examples/general/box/#grouped-box
Contributor guide
Research direction
Start with the provided CodeSandbox reproduction and compare it with the linked grouped-box example. Follow the legend interactions for “I. versicolor” and “I. virginica” while checking the X-axis labels. Done means hiding one group removes only its related label, while unrelated labels remain visible and all labels return when the group is shown again.
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
- 35/100