percentFormatString: String

Defines how percent values are formatted before they appear on the indexLabel or toolTip. You can format percent values using this property.

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


var chart = new CanvasJS.Chart("chartContainer", 
{
.
.
Data: [{
percentFormatString: "#0.##",
.
.
},
]
});
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