Chartjs-Drawing to canvas on click clears text when mouse leaves the chart

1👍

Don’t draw to the canvas directly (as it’s managed by Chart.js) use plugin api instead. You can use one of the hooks provided – for example afterDraw to draw your stuff after the chart was drawn.

Working JSFiddle:
https://jsfiddle.net/fa7s5q30/12/

Leave a comment