Home forums Using CanvasJS charts in ionic 2 y-axis labels changes Reply To: charts in ionic 2 y-axis labels changes

#17636

Suyash Singh
Moderator

@prabhjot,

labelFormatter is a custom function whereas suffix is a property within the axis object. Using the labelFormatter as:

axisY:{
	labelFormatter: function ( e ) {
		return e.value + "K";  
	}  
}

should work fine in your case. You could also use suffix property within the axis to achieve the same. Please have a look at suffix.

___
Suyash Singh
Team CanvasJS