no commit message
This commit is contained in:
@ -40,7 +40,7 @@
|
||||
getDensity30Day().then(response => {
|
||||
for (var i = 0; i < response.data.length; i++) {
|
||||
lineChartData.xAxisData.push((response.data[i].time + '').replace(' 00:00:00.0', ''))
|
||||
lineChartData.actualData.push(parseFloat(response.data[i].density).toFixed(4))
|
||||
lineChartData.actualData.push(parseFloat(response.data[i].density).toFixed(3))
|
||||
}
|
||||
|
||||
const chart_energy_avg = echarts.init(document.getElementById('chart_density_avg'))
|
||||
|
@ -39,8 +39,8 @@
|
||||
|
||||
getDensity72h().then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
lineChartData.xAxisData.push((response.data[i].time + '').replace(' 00:00:00.0', ''))
|
||||
lineChartData.actualData.push(parseFloat(response.data[i].density).toFixed(4))
|
||||
lineChartData.xAxisData.push((response.data[i].time + '').replace(':00.0', ''))
|
||||
lineChartData.actualData.push(parseFloat(response.data[i].density).toFixed(3))
|
||||
}
|
||||
|
||||
const chart_energy_avg = echarts.init(document.getElementById('chart_density_avg'))
|
||||
|
@ -112,7 +112,7 @@
|
||||
getDensityDataRange(this.daterange_time1,this.daterange_time2).then(response => {
|
||||
for (var i = 0; i < response.data.length; i++) {
|
||||
lineChartData.xAxisData.push((response.data[i].time + '').replace(' 00:00:00.0', ''))
|
||||
lineChartData.actualData.push(parseFloat(response.data[i].density).toFixed(4))
|
||||
lineChartData.actualData.push(parseFloat(response.data[i].density).toFixed(3))
|
||||
}
|
||||
|
||||
const chart_energy_avg = echarts.init(document.getElementById('chart_density_avg'))
|
||||
|
@ -40,7 +40,7 @@
|
||||
getDensityGroup().then(response => {
|
||||
for (var i = 0; i < response.data.length; i++) {
|
||||
lineChartData.xAxisData.push((response.data[i].time + '').replace(' 00:00:00.0', ''))
|
||||
lineChartData.actualData.push(parseFloat(response.data[i].density).toFixed(4))
|
||||
lineChartData.actualData.push(parseFloat(response.data[i].density).toFixed(3))
|
||||
}
|
||||
|
||||
const chart_energy_avg = echarts.init(document.getElementById('chart_density_avg'))
|
||||
|
Reference in New Issue
Block a user