You must be logged in to post your query.
Home › Forums › Chart Support › Bar chart showing 1 and -1 value
Tagged: Bar Chart, Labels, names
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).
How can I delete or not show these bars? Thanks!
Sorry image not showing. https://imgur.com/zslWi2L
@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.
— Thangaraj Raman Team CanvasJS
You must be logged in to reply to this topic. Login/Register