🐛 [BUG] 轴标签同时开启自动旋转和右对齐时渲染被遮挡
- 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]
> 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**:

开启自动旋转时, 如果文本对齐方式是右对齐, label 会遮挡
```ts
xAxis: {
label: {
autoRotate: true,
style: {
textAlign: 'right'
// textAlign: 'center'
// textAlign: 'left'
},
formatter: () => "asfkdsajfksdfjsdkjfsd"
},
}
```
### 📷 Step to reproduce
### 🏞 Expected result

### 🚑 Any additional [like screenshots]
* **G2Plot Version**:
* **Platform**:
Contributor guide
Research direction
Start by reproducing the issue in the linked G2Plot CodeSandbox using an xAxis label with autoRotate enabled, textAlign set to right, and the shown formatter. Trace the axis-label rendering entry point to find why the rotated label is obscured, then verify that right-, center-, and left-aligned labels render without overlap.
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