score:0

i suggest you install chart.js via npm

npm install chart.js --save

and then import it like that:

// es6

import chart from 'chart.js';

i'm assuming that you're using some kind of bundler like webpack to make code above works. if not you have to include chart.min.js in your index file before basechart.js


Related Query

More Query from same tag