[Chartjs]-Dynamic multiple charts in chart.js with dynamic data inside them

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

Leave a comment