|
|
@ -44,7 +44,7 @@ function dhtTrend(){ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function dhtTrendData(callback){ |
|
|
|
function dhtTrendData(callback){ |
|
|
|
dhtPostMin('get_trend_data',{interval:5},function(data){ |
|
|
|
dhtPostMin('get_trend_data',{interval:1},function(data){ |
|
|
|
if(typeof(callback) == 'function'){ |
|
|
|
if(typeof(callback) == 'function'){ |
|
|
|
callback(data); |
|
|
|
callback(data); |
|
|
|
} |
|
|
|
} |
|
|
@ -118,7 +118,7 @@ function dhtTrendRender() { |
|
|
|
trigger: 'axis' |
|
|
|
trigger: 'axis' |
|
|
|
}, |
|
|
|
}, |
|
|
|
legend: { |
|
|
|
legend: { |
|
|
|
data: ['5s', '10s', '15s'], |
|
|
|
data: ['1s', '5s', '10s'], |
|
|
|
bottom: '2%' |
|
|
|
bottom: '2%' |
|
|
|
}, |
|
|
|
}, |
|
|
|
xAxis: { |
|
|
|
xAxis: { |
|
|
@ -145,7 +145,7 @@ function dhtTrendRender() { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
series: [{ |
|
|
|
series: [{ |
|
|
|
name: '5s', |
|
|
|
name: '1s', |
|
|
|
type: 'line', |
|
|
|
type: 'line', |
|
|
|
data: oneData, |
|
|
|
data: oneData, |
|
|
|
smooth: true, |
|
|
|
smooth: true, |
|
|
@ -166,7 +166,7 @@ function dhtTrendRender() { |
|
|
|
normal: {width: 1} |
|
|
|
normal: {width: 1} |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
name: '10s', |
|
|
|
name: '5s', |
|
|
|
type: 'line', |
|
|
|
type: 'line', |
|
|
|
data: twoData, |
|
|
|
data: twoData, |
|
|
|
smooth: true, |
|
|
|
smooth: true, |
|
|
@ -193,7 +193,7 @@ function dhtTrendRender() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
},{ |
|
|
|
},{ |
|
|
|
name: '15s', |
|
|
|
name: '10s', |
|
|
|
type: 'line', |
|
|
|
type: 'line', |
|
|
|
data: threeData, |
|
|
|
data: threeData, |
|
|
|
smooth: true, |
|
|
|
smooth: true, |
|
|
@ -236,9 +236,9 @@ function dhtTrendRender() { |
|
|
|
myChartNetwork.setOption({ |
|
|
|
myChartNetwork.setOption({ |
|
|
|
xAxis: {data: xData}, |
|
|
|
xAxis: {data: xData}, |
|
|
|
series: [ |
|
|
|
series: [ |
|
|
|
{name: '5s',data: oneData},
|
|
|
|
{name: '1s',data: oneData},
|
|
|
|
{name: '10s',data: twoData}, |
|
|
|
{name: '5s',data: twoData}, |
|
|
|
{name: '15s',data: threeData} |
|
|
|
{name: '10s',data: threeData} |
|
|
|
] |
|
|
|
] |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -246,7 +246,7 @@ function dhtTrendRender() { |
|
|
|
|
|
|
|
|
|
|
|
renderTick = setInterval(function() { |
|
|
|
renderTick = setInterval(function() { |
|
|
|
render(); |
|
|
|
render(); |
|
|
|
}, 5000); |
|
|
|
}, 2500); |
|
|
|
|
|
|
|
|
|
|
|
checkTick = setInterval(function() { |
|
|
|
checkTick = setInterval(function() { |
|
|
|
var obj = $('#dht_trend'); |
|
|
|
var obj = $('#dht_trend'); |
|
|
|