Commit 991c7e3b authored by xinzhedeai's avatar xinzhedeai

温度 风速坐标后台匹配

parent cb6139d9
......@@ -329,6 +329,15 @@
}).then(res => {
const result = res.data.body;
if (result) {
const max = result.max // 必返
if(max){
chartsOption.yAxis[0].max = max
chartsOption.yAxis[0].min = -20
chartsOption.yAxis[1].max = max
chartsOption.yAxis[1].min = -20
}
chartsOption.xAxis.data = result.xData.data
var marklineColors = ['red','orange', 'yellow', 'blue'];
......
......@@ -319,6 +319,15 @@
}).then(res => {
const result = res.data.body;
if (result) {
const max = result.max
if(max){
chartsOption.yAxis[0].max = max
chartsOption.yAxis[0].min = 0
chartsOption.yAxis[1].max = max
chartsOption.yAxis[1].min = 0
}
chartsOption.xAxis.data = result.xData.data
var marklineColors = ['red','orange', 'yellow', 'blue'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment