[Chartjs]-Vue3 does not show line-chart

2👍

This won’t work Vue?.use(Chartkick.use(Chart));

here’s a way that should solve it

const app = createApp(App);
app.use(router);
app.use(VueChartkick);
app.mount('#app');

The reason is you need to use it on the instance and not the Vue. This is because of the changes in how Vue3 works.

Leave a comment