Home Forums Chart Support Bar chart – problem when there is only one row and interval 1

Bar chart – problem when there is only one row and interval 1

Viewing 2 posts - 1 through 2 (of 2 total)
  • #38802

    When I have graph as below code and only one row in it. Graph shows +1 and -1 on Y axis when I have more rows +1/-1 don’t show …
    I need interval 1 need to show each label when there is more rows.
    I have to remove interval for one row for now….

    https://jsfiddle.net/moL50yvb/

    #38824

    Pavel Hulmak,

    Extra labels +1 & -1 are shown as interval is set manually. Based on the interval & some other factors, axis range is calculated & hence the extra labels are added in this case. You can overcome this by either not setting interval when there are less datapoints or by manually setting axis range. Please take a look at this updated JSFiddle.

    JavaScript Bar Chart with Label


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.