| | |
| | | fontSize: 14 |
| | | }, |
| | | formatter: function(params) { |
| | | let result = params[0].axisValue + '<br/>' |
| | | let result = params[0].axisValue + '\n' |
| | | params.forEach(param => { |
| | | result += `${param.seriesName}: ${param.value}<br/>` |
| | | result += `${param.seriesName}: ${param.value}\n` |
| | | }) |
| | | return result |
| | | } |
| | | } |
| | | } |
| | | |
| | | myChart.setOption(option, true) |
| | | myChart.setOption(option) |
| | | }, |
| | | |
| | | resize() { |
| | |
| | | setInterval(() => { |
| | | this.getInOutLineCharts(); |
| | | this.getLocDetlStatistics(); |
| | | }, 60000); |
| | | }, 1000); |
| | | }, |
| | | onUnload() { |
| | | if (this.timer) { |
| | |
| | | series: newSeries |
| | | }; |
| | | |
| | | this.isLineChartReady = false; |
| | | this.$nextTick(() => { |
| | | if (!this.isLineChartReady) { |
| | | this.isLineChartReady = true; |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | } |