yValueFormatString: String

Defines how y axis values must be formatted before they appear on the indexLabel or toolTip. You can format numbers and date time values using this property.

Notes
  • You can read more about the supported formatting options here.


var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data: [{
   yValueFormatString: "$####.00",

  },
 ]
 .
 .
});
chart.render();


Try it Yourself by Editing the Code below.



In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.

Comments 2

In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.