Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [BUG]条形图配置x轴y轴的title旋转不生效 #3718

Open
Keithcaiqian opened this issue Dec 13, 2023 · 0 comments
Open

🐛 [BUG]条形图配置x轴y轴的title旋转不生效 #3718

Keithcaiqian opened this issue Dec 13, 2023 · 0 comments
Labels
Bug Something isn't working

Comments

@Keithcaiqian
Copy link

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();

现象:方向没有变化
image

@Keithcaiqian Keithcaiqian added the Bug Something isn't working label Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant