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 Editing The Code


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