1π
β
In your plugin, change this line of code :
var text = $var + "%",
to this :
var text = chart.options.centerText + "%",
..and then, set centerText
property to a data value in your chart options (for each of your charts)
see a working example
- [Chartjs]-How to properly feed data to ChartJS with different number of x(labels) and y(data) points
Source:stackexchange.com