src/components/chart/CountDataApply.vue
@@ -27,7 +27,7 @@ xAxis.push(item.name) yAxis.push(item.number) }) // let data = [220, 182, 191, 234, 290, 330, 310] // const sideData = data.map(item => { // return { @@ -46,6 +46,13 @@ type: "shadow", // 默认为直线,可选为:'line' | 'shadow' }, }, grid: { top: "10%", bottom: "15%", right: "5%", left: "5%", containLabel: true, }, xAxis: { data: xAxis, //坐标轴