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.



If you have any questions, please feel free to ask in our forums.Ask Question

Comments 2

If you have any questions, please feel free to ask in our forums. Ask Question