Hi Matthieu,
Sorry for inconvenience caused.
We have replaced your package.json and webpack files in our vue-cli project. It is working fine in our end. Please ignore the systemjs configurations in the documentation. We have prepared a sample with the package.json and webpack.config.js which you had shared.
Please follow the steps to render Syncfusion Vue charts,
- Install vue cli
You can use Vue CLI to setup your vue applications. To install Vue CLI use the following commands.
npm install -g @vue/cli
npm install -g @vue/cli-init
- Create a vue application
Start a new Vue application using below Vue CLI command.
vue init webpack-simple quickstart
cd quickstart
npm
install
- Adding Syncfusion Chart package
All the available Essential JS 2 packages are published in npmjs.com
registry.
To install chart component, use the following command
npm
install @syncfusion/ej2-vue-charts --save
- Registering Chart Component
You can register the chart component in your application by using the Vue.use()
.
Refer to the code example given below.
import
{ ChartPlugin
}
from
'@syncfuion/ej2-vue-charts';
Vue
.use(ChartPlugin
);
5. Adding Chart Component
· Add the Vue Chart by using <ejs-chart>
selector in <template>
section of the App.vue
file.
·
Code snippet:
App.vue file
<template>
<ejs-chart></ejs-chart>
</template>
<script>
import Vue from 'vue';
import { ChartComponent, ChartPlugin } from '@syncfusion/ej2-vue-charts';
Vue.component(ChartPlugin.name, ChartComponent);
export default {
name: 'app',
data () {
return {
msg: 'Chart'
}
}
}
</script>
|
Output screenshot:
Please let us if you have further assistance on this
Regards,
Kesavan