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.

Note
  • You can read more about the supported formatting options here.
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data: [{
   yValueFormatString: "$####.00",

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

Try Editing The Code


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

2 Comments

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