0๐
โ
You can use the toDataURL() to make the canvas into an image (and you could use media specific CSS to hide the canvas and swap in the img with src as the Data URL when printing)
Remember to wait for the animation to end before generating the data URI or you end up with a blank image.
๐:0
Chart.js relies on a HTML5 canvas to render its charts however canvas objects cannot be printed by browsers.
The solution to bypass this limitation is to transform the canvas into an image when printing as described in this post.