0👍
There are two ways to do it.
Either pass the values inside the context to the html and then use the script text inside the html file to render out the data.
Another method, and perhaps the accurate one is to use ajax.
- Chartjs-Chart.js Example Isn't working
- Chartjs-Getting 'Uncaught TypeError: Cannot read property 'helpers' of undefined'
Source:stackexchange.com