I'm working on a plugin that *reads* information from database and create some graphic visualisation.
My graphs are outputted by Moodle core function Chart.js.
In Chart.js documentation I see that we can do two things :
- Use animations to present information
- Convert canvas to PNG at the end of animations (with Chart.js toBase64Image(); function).
But I can't use this function in Moodle. It seems that this function has not been included in the Chart.js package in Moodle. Does anyone have any information about where should I start ?
A fizzle example where it does work (without Moodle) :
Thank you very much