Home Forums Chart Support 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

[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 7 years, 11 months ago by Sanjoy.
  • This reply was modified 3 years, 7 months ago by Vishwas R.