[Vuejs]-Vue Echarts: Cannot read property 'getCartesian' of null

0👍

To solve this, you must create a boot file

// /src/boot/echart.js 
import { boot } from 'quasar/wrappers';
import VCharts from 'v-charts';

export default boot(({ app, router, store, Vue }) => {
    Vue.use(VCharts);
});

Then in quasar.conf.js you will find a key named ‘boot’, which is an array. Add ‘echart’ (same as the file named above) to it.

And now it works!

Leave a comment