🐛 [BUG]条形图配置x轴y轴的title旋转不生效
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 591
- PR merge metrics
- No merged PRs in 30d
Description
```
import { Bar } from '@antv/g2plot';
const data = [
{ year: '1951 年', value: 38 },
{ year: '1952 年', value: 52 },
{ year: '1956 年', value: 61 },
{ year: '1957 年', value: 145 },
{ year: '1958 年', value: 48 },
];
const bar = new Bar('container', {
data,
xField: 'value',
yField: 'year',
seriesField: 'year',
yAxis: {
title: {
text: 'yAxis',
autoRotate: false,
rotation: Math.PI / 2
},
},
xAxis: {
title: {
text: 'xAxis',
autoRotate: false,
rotation: Math.PI
},
},
legend: {
position: 'top-left',
},
});
bar.render();
```
现象:方向没有变化

Contributor guide
Research direction
Start with the supplied TypeScript Bar reproduction and trace how xAxis and yAxis title options handle autoRotate and rotation. Verify the chart renders both titles at the requested angles and add or run a focused regression check for the shown configuration.
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
- Clearly specified
- Newbie friendliness
- 45/100