Tested without initially populating data, now chart squeezes initially upto 10 values
This commit is contained in:
parent
6fffd04801
commit
0a11c56b14
@ -381,7 +381,7 @@ $(function() {
|
||||
}
|
||||
};
|
||||
var set_previous = getCurrentQueryStats();
|
||||
initiateChartData(chartId, settings);
|
||||
//initiateChartData(chartId, settings);
|
||||
recursiveTimer(chartId, settings);
|
||||
|
||||
} else {
|
||||
@ -433,7 +433,9 @@ $(function() {
|
||||
}
|
||||
|
||||
function replotQueryStatsChart(chartId, settings) {
|
||||
series[0].splice(0,1);
|
||||
if(series[0].length >= 10) {
|
||||
series[0].splice(0,1);
|
||||
}
|
||||
series[0].push(getCurrentQueryStats());
|
||||
$.jqplot(chartId, [series[0]], settings).replot();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user