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.
- Chartjs-Displaying dataset labels in Chart.js line graph
- Chartjs-Display with Month name in the Tooltip
Source:stackexchange.com