|
@@ -111,7 +111,17 @@ export default {
|
|
|
show(params) {
|
|
|
this.initChart(params)
|
|
|
},
|
|
|
+ drawChart({ x, y, z }) {
|
|
|
+ this.myChart.clear()
|
|
|
+ this.setChart({ x, y, z })
|
|
|
+ },
|
|
|
setChart({ x, y, z }) {
|
|
|
+ this.option.series[0].data = x
|
|
|
+ this.option.series[1].data = y
|
|
|
+ this.option.series[2].data = z
|
|
|
+ this.myChart.setOption(this.option)
|
|
|
+ },
|
|
|
+ setChartType1({ x, y, z }) {
|
|
|
this.option.series[0].data = x.filter((item, index) => index < 200)
|
|
|
this.option.series[1].data = y.filter((item, index) => index < 200)
|
|
|
this.option.series[2].data = z.filter((item, index) => index < 200)
|
|
@@ -136,7 +146,7 @@ export default {
|
|
|
index++
|
|
|
}
|
|
|
self.myChart.setOption(self.option)
|
|
|
- }, 1000)
|
|
|
+ }, 30)
|
|
|
}
|
|
|
}
|
|
|
}
|