| | |
| | | }, |
| | | }) |
| | | } |
| | | } else if (lockLength < data[i].deviceData.length) { |
| | | } else { |
| | | newLineChartData.series.push({ |
| | | data: [], |
| | | name: '', |
| | | type: 'line', |
| | | label: { |
| | | show: false, |
| | | position: 'top', |
| | | }, |
| | | }) |
| | | } |
| | | newLineChartData.series[j].name = data[i].deviceData[j].name |
| | | newLineChartData.title.push(data[i].deviceData[j].name) |
| | | lockLength++ |
| | | newLineChartData.series[j].data.push( |
| | | data[i].deviceData[j].sensorValue |
| | | ) |
| | |
| | | } |
| | | // newLineChartData.title = this.value |
| | | this.lineChartData = newLineChartData |
| | | // console.log(newLineChartData, 'newLineChartData') |
| | | console.log(lineChartData, 'newLineChartData') |
| | | }) |
| | | .catch((err) => { |
| | | console.log(err) |