Skip to content

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

@Carmin332

Description

@Carmin332

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions