|
|
|
@ -59,13 +59,14 @@ export default { |
|
|
|
this.xData=[] |
|
|
|
this.dataIn=[] |
|
|
|
this.dataOut=[] |
|
|
|
for (var i = 0; i < this.chartData.inStatistics.length; i++) { |
|
|
|
for (let i = 0; i < this.chartData.inStatistics.length; i++) { |
|
|
|
this.xData.push(this.chartData.inStatistics[i].timeUnit) |
|
|
|
this.dataIn.push(this.chartData.inStatistics[i].num) |
|
|
|
} |
|
|
|
for (var i = 0; i < this.chartData.outStatistics.length; i++) { |
|
|
|
for (let i = 0; i < this.chartData.outStatistics.length; i++) { |
|
|
|
this.dataOut.push(this.chartData.outStatistics[i].num) |
|
|
|
} |
|
|
|
// eslint-disable-next-line no-undef |
|
|
|
let myChart = echarts.init(document.getElementById('chart_arc')); |
|
|
|
this.option = { |
|
|
|
tooltip: { |
|
|
|
@ -75,6 +76,7 @@ export default { |
|
|
|
axisPointer: { |
|
|
|
type: 'shadow', |
|
|
|
shadowStyle: { |
|
|
|
// eslint-disable-next-line no-undef |
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ |
|
|
|
offset: 1, |
|
|
|
color: '#5d83ff' |
|
|
|
@ -174,6 +176,7 @@ export default { |
|
|
|
}, |
|
|
|
areaStyle: { |
|
|
|
normal: { |
|
|
|
// eslint-disable-next-line no-undef |
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ |
|
|
|
offset: 0, |
|
|
|
color: '#1BDB7F' |
|
|
|
|