Home forums Using CanvasJS X Axis Data Consists of year and y consists of runs made by player Reply To: X Axis Data Consists of year and y consists of runs made by player

#10511

Sanjoy
Moderator

[Update]: We have just released v1.9.0 with Logarithmic Axis. Please checkout gallery page for Logarithmic Scale.

Cameron,

In your example you have to set valueFormatString inside axisY object for applying to axisY labels.

In case you are using labelFormatter for implementing logarithmic axisY it will override valueFormatString. So, in this case inside labelFormatter function in the CanvasJS.formatNumber method you have to pass required format as second argument. Eg. in the example of logarithmic axisY by rewriting line 12 as below would remove the comma.

lable = CanvasJS.formatNumber(lable/1000, "####") +"k";

  • This reply was modified 6 months, 2 weeks ago by  Sanjoy.