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

xAxis pointOnColumn option is not working #812

Open
alstjr9396 opened this issue May 23, 2024 · 0 comments
Open

xAxis pointOnColumn option is not working #812

alstjr9396 opened this issue May 23, 2024 · 0 comments

Comments

@alstjr9396
Copy link

Describe the bug
When creating a lineChart using data defined the categories, pointOnColumn=true option works well, but not using categories, it does not work.

Code
Using data defined categories;

  var data = {categories: [1, 2, 3, 4],  series: {name: 'test', data: [20, 40, 10, 20]}};
  var options = {
        chart: {width: 'auto', height: 500},
        xAxis: {
          pointOnColumn: true,
        },
        series: {
          showDot: true
        },
        yAxis: {
          scale: {
            max: 7,
            min: 0,
            step: 1,
          },
        },
        legend: {
          align: 'bottom',
        },
        exportMenu: {
          visible: false
        },
        lang: {
          noData: '조회된 데이터가 없습니다.',
        },
      };

Using data not defined categories;

var data = {
        series: [{name: 'test', data: [{x: 1, y: 20}]],
};
var options = {
        chart: {width: 'auto', height: 500},
        series: {
          showDot: true
        },
        yAxis: {
          scale: {
            min: 0,
            max: 100,
            step: 50,
          }
        },
        xAxis: {
          pointOnColumn: true,
          scale: {
            min: 1,
            max: 6,
            step: 1,
          },
        },
        legend: {
          align: 'bottom',
        },
        exportMenu: {
          visible: false
        },
        lang: {
          noData: '조회된 데이터가 없습니다.',
        },
      };

Screenshots
Not working
error

Desktop (please complete the following information):

  • OS: Window
  • Browser chrome
  • Version chrome 124.0.6367.210
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant