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

#34818

@afreay,

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