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

Bar Chart type 'numeric' has misaligned bar for 0 value #4829

Closed
Carmin332 opened this issue Nov 15, 2024 · 0 comments
Closed

Bar Chart type 'numeric' has misaligned bar for 0 value #4829

Carmin332 opened this issue Nov 15, 2024 · 0 comments

Comments

@Carmin332
Copy link

I'm using the following code to render a bar chart, but I encounter misalignment when the x-value is 0:

var options = {
  chart: {
    height: 380,
    width: "100%",
  },
  series: [
    {
      name: "Series 1",
  data:[[0, 1], [1, 2], [2, 3] , [3, 4]]
    }
  ],
  xaxis: {
      type: 'numeric'
  }
};

  <Chart
            options={options}
            series={options.series}
            type={'bar'}
            height={'100%'}
            width={'100%'}
          />

image

However, all other x-values work fine, but the bar for 0 seems misaligned. What can I do fix this?

@junedchhipa junedchhipa transferred this issue from apexcharts/react-apexcharts Nov 25, 2024
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