<template>
<v-app>
<v-main>
<v-row>
<v-col cols="12">
<v-card height="600" class="ml-3 mt-3" flat>
<div id="manyYAxisChart" style="height: 100%;width: 100%" class="mychart"></div>
</v-card>
</v-col>
</v-row>
</v-main>
</v-app>
</template>
<script>
export default {
name: "EchartsManyYAxis",
mounted() {
this.drawManyYAxisChart();
},
methods: {
drawManyYAxisChart(){
//随机数生成
// const a = Math.floor(Math.random() * (max - min + 1)) + min;
//随机生成多个Y轴的数据
let allData = [];
//i为多少个Y轴的数据
for (let i=0; i<9; i++){
allData[i]=[];
// j是有多少条数据
for (let j=0; j<15; j++){
let randomNum
if (j === 0){
randomNum = Math.floor(Math.random() * (300 - 1 + 1)) + 1;