Home Forums Chart Support Single data row barcharts showing 1, -1 rows Reply To: Single data row barcharts showing 1, -1 rows

#38266

@kfox,

In case of numeric axis chart, labels will be shown at every interval of the axis. Because of this, it’s showing 1 & -1. If there is just one datapoint and your requirement is to show label just for datapoint, you can use category axis (use label instead of x-value). Please take a look at this JSFiddle for an example.

JavaScript Bar Chart with Category Axis


Vishwas R
Team CanvasJS