Home Forums Chart Support Bar chart showing 1 and -1 value

Bar chart showing 1 and -1 value

Viewing 3 posts - 1 through 3 (of 3 total)
  • #40358

    Im trying to create a bar chart that can show from 0 to 200 or 300 bars. When the chart has only 1 bar, is showing the bar between 1 and -1 bars (but these are not showing info).
    chart

    How can I delete or not show these bars? Thanks!

    #41105

    Sorry image not showing.
    https://imgur.com/zslWi2L

    #41372

    @alfonso-arroyo,

    It looks like you are setting the axisX interval manually due to which the extra labels -1 and 1 are shown. Based on the interval & other factors, the axis range is calculated & hence the extra labels are added in this case. You can overcome this behavior by either not setting interval when there are fewer datapoints or by manually setting the axis range.

    Please take a look at this JSFiddle for a working example.

    Bar Chart with Single Label


    Thangaraj Raman
    Team CanvasJS

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.