0👍
In Charts.js you can use the method .toBase64Image()
to convert the chart to a png.
It says it in the documentation:
.toBase64Image()
This returns a base 64 encoded string of the chart in it’s current state.
You can then pass that image to your dompdf library.
Source:stackexchange.com