Apexcharts.js: Horizontal bar axis not showing last (max) label & tick

Created on 30 Jul 2019  ยท  8Comments  ยท  Source: apexcharts/apexcharts.js

https://codepen.io/vsync/pen/XvMPGq

When using horizontal bar chart, with data set such as [10,20,100], the _xaxis_ last label (and tick) are missing. Expected to show the value 100 in the right-most side:

image

Options:

{
  chart: {
    height: 380,
    width: "100%",
    type: "bar"
  },
  plotOptions: {
      bar: {
          barHeight: '100%',
          horizontal: true   // โ† "true" flip the axis, "100" is not shown anymore
      }
  },
  series: [
    {
      name: "Series 1",
      data: [10,20,100]
    }
  ]
}

When horizontal set to false and the axis flip, the max value is shown as expected & at the current position (although now on the Y axis)

bug high-priority

Most helpful comment

The last x-axis label is intentionally hidden to avoid overflowing in some cases.
But, I think, in horizontal bar charts, this should be avoided.

I will change this behavior for horizontal bar charts.

All 8 comments

I'm wonder this as well but using React instead. Hoping for someone to shed some light on this! :)

I've noticed that too

I have the same problem

The last x-axis label is intentionally hidden to avoid overflowing in some cases.
But, I think, in horizontal bar charts, this should be avoided.

I will change this behavior for horizontal bar charts.

The last x-axis label is intentionally hidden to avoid overflowing in some cases.
But, I think, in horizontal bar charts, this should be avoided.

I will change this behavior for horizontal bar charts.

How can I hide the max and show the min label in horizontal bar charts?

Is there any way to change this in timeline chart? @junedchhipa

Will there be a future solution where the final x-axis value is not hidden but also not cut off? (I'm specifically concerned with area charts). @junedchhipa

What should be done to show last label in Line Chart Dual Axis? @junedchhipa

Was this page helpful?
0 / 5 - 0 ratings

Related issues

drummad picture drummad  ยท  3Comments

artfulrobot picture artfulrobot  ยท  3Comments

felixalguzman picture felixalguzman  ยท  3Comments

Sumon-miazi picture Sumon-miazi  ยท  3Comments

piyushSinghalDemo picture piyushSinghalDemo  ยท  3Comments