| | |
| | | <template> |
| | | <div class="CountDataApply" ref="chart"></div> |
| | | <div |
| | | class="CountDataApply" |
| | | ref="chart" |
| | | ></div> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | xAxis.push(item.name) |
| | | yAxis.push(item.number) |
| | | }) |
| | | |
| | | |
| | | // let data = [220, 182, 191, 234, 290, 330, 310] |
| | | // const sideData = data.map(item => { |
| | | // return { |
| | |
| | | type: "shadow", // 默认为直线,可选为:'line' | 'shadow' |
| | | }, |
| | | }, |
| | | grid: { |
| | | top: "10%", |
| | | bottom: "15%", |
| | | right: "5%", |
| | | left: "5%", |
| | | containLabel: true, |
| | | }, |
| | | xAxis: { |
| | | data: xAxis, |
| | | //坐标轴 |
| | |
| | | }, |
| | | //坐标值标注 |
| | | axisLabel: { |
| | | show: true, |
| | | show: false, |
| | | textStyle: { |
| | | color: "#fff", |
| | | }, |