|
|
@ -383,7 +383,8 @@ export default { |
|
|
|
creates.opticalThickness = new HighChartCreate('opticalThickness'); |
|
|
|
creates.opticalThickness.setChart(); |
|
|
|
// creates.opticalThickness.setSpecialXAxis('时间(小时)', 24, 0, 2); |
|
|
|
creates.opticalThickness.setXAxis('时间(天/时)', false); |
|
|
|
// creates.opticalThickness.setXAxis('时间(天/时)', false); |
|
|
|
creates.opticalThickness.setXAxisTypeDate(); |
|
|
|
creates.opticalThickness.setYAxis('光学厚度', 6, 0, 1, 7); |
|
|
|
creates.opticalThickness.setLegend(true); |
|
|
|
creates.opticalThickness.setTooltip('{point.y}'); |
|
|
@ -622,10 +623,9 @@ export default { |
|
|
|
|
|
|
|
const drawAerosolCharts = (result: CustomeArray<any>) => { |
|
|
|
if (result.length != 24) return; |
|
|
|
|
|
|
|
const data = prepareChartData(result); |
|
|
|
creates.opticalThickness.updateSeries(0, data) |
|
|
|
creates.opticalThickness.updateXAxis(options.chartTimeData, 0) |
|
|
|
creates.opticalThickness.updateSeries(0, data); |
|
|
|
// creates.opticalThickness.updateXAxis(options.chartTimeData, 0) |
|
|
|
options.loadingOpticalThicknessStatus = false |
|
|
|
} |
|
|
|
|
|
|
@ -633,7 +633,7 @@ export default { |
|
|
|
if (result.length != 24) return; |
|
|
|
const data = prepareChartData(result); |
|
|
|
creates.opticalThickness.updateSeries(1, data) |
|
|
|
creates.opticalThickness.updateXAxis(options.chartTimeData, 0) |
|
|
|
// creates.opticalThickness.updateXAxis(options.chartTimeData, 0) |
|
|
|
options.loadingOpticalThicknessStatus = false |
|
|
|
} |
|
|
|
|
|
|
@ -641,7 +641,7 @@ export default { |
|
|
|
if (result.length != 24) return; |
|
|
|
const data = prepareChartData(result); |
|
|
|
creates.opticalThickness.updateSeries(2, data) |
|
|
|
creates.opticalThickness.updateXAxis(options.chartTimeData, 0) |
|
|
|
// creates.opticalThickness.updateXAxis(options.chartTimeData, 0) |
|
|
|
options.loadingOpticalThicknessStatus = false |
|
|
|
} |
|
|
|
|
|
|
@ -670,7 +670,7 @@ export default { |
|
|
|
options.chartTimeData.push(item.time) |
|
|
|
if (item.data == null) { |
|
|
|
let temp = []; |
|
|
|
for (let i = 0; i < 60; i++) { |
|
|
|
for (let i = 0; i < 11; i++) { |
|
|
|
temp.push(NaN); |
|
|
|
} |
|
|
|
item.data = [temp]; |
|
|
@ -681,8 +681,9 @@ export default { |
|
|
|
}) |
|
|
|
let interval = (24 / prepareData.length); |
|
|
|
let data = []; |
|
|
|
let startTimeMoment = moment(result[0].time, 'M_D_H').add(8, 'h').add(-30, 'm'); |
|
|
|
for (let i = 0, len = prepareData.length; i < len; i++) { |
|
|
|
data.push([parseFloat((interval * i).toFixed(2)), prepareData[i]]) |
|
|
|
data.push([startTimeMoment.clone().add(interval * i, 'h').valueOf(), prepareData[i]]); |
|
|
|
} |
|
|
|
return data; |
|
|
|
} |
|
|
|