score:0

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.


Related Query

More Query from same tag