Closed Jocelyn-AGORO closed 4 months ago
ES Module imports
├── echarts@5.4.3 ├── vue@2.7.16 ├── vue-echarts@6.6.8 ├─┬ vue2-color-picker-gradient@0.15.0 │ └── vue@2.7.16 deduped └─┬ vue2-slide-unlock@0.2.6 └── vue@2.7.16 deduped
For example for the following option object
option = { title: { text: 'Testing Chart Configuration' }, tooltip: {}, xAxis: { type: 'category', name: "Semaine de l'année", nameGap: 45, nameLocation: 'center', position: 'bottom' }, yAxis: { name: 'Nombre de connexion', nameGap: 45, nameLocation: 'center', position: 'left' }, dataset: { dimensions: ['label', 'value'], source: [ { label: 'Sem. 1', value: 78 }, { label: 'Sem. 2', value: 15 }, { label: 'Sem. 3', value: 852 }, { label: 'Sem. 5', value: 630 }, { label: 'Sem. 7', value: 26 }, { label: 'Sem. 8', value: 5 } ] }, series: [{ type: 'line' }] };
Got the following chart :
xAxis "0" not found
On Echarts PlayGround :
https://stackblitz.com/edit/vue-wejebl?file=src%2FApp.vue
I found the problem, it was not a bug, just import "DatasetComponent"
Confirmation
How are you introducing Vue-ECharts into your project?
ES Module imports
Versions
Details
For example for the following option object
Got the following chart :
xAxis "0" not found
On Echarts PlayGround :
Reproduction
https://stackblitz.com/edit/vue-wejebl?file=src%2FApp.vue