[Vuejs]-Echarts – How to draw combinational chart with different data values in vuejs

0👍

Add some category data to your xAxis object by setting xAxis.data to an array of length 11.

xAxis: {
    type: 'category',
    data: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K']
},

Then your ECharts component will automatically map that array on the category axis, allowing you to expand the limit to 11 instead of 7:
enter image description here

Leave a comment