Home Forums Chart Support Round Y-Axis Number Label Reply To: Round Y-Axis Number Label



You can use valueFormatString to show the labels as a whole number. Also if you want to display labels only at the whole number position, you can use interval property. Please check the below code snippet –

axisY: {
  valueFormatString: "#",
  interval: 1

Kindly check this updated JSFiddle for a working example.

Formatting y-axis labels

Indranil Deo
Team CanvasJS