G2Plot
G2Plot copied to clipboard
🐛 [BUG]条形图配置x轴y轴的title旋转不生效
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();
现象:方向没有变化