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.



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.