Chartjs-How to define the Charts in the script?

0👍

The compiler complains about Chart being not defined, because it does not know that it should load Chart from the chart.js package. Per the integration documentation you can simply put import Chart from 'chart.js' at the top of your script. You may need to include the moment package as well.

Leave a comment