[Chartjs]-Looping through afterDraw in ChartJS

2👍

Instead of using the afterDraw hook, you could use the afterLayout or afterUpdate hook to execute your custom code.

Please take a look at chapter Chart Update from the Chart.js documentation.

Leave a comment