From 0a11c56b14b79a1fc6d4d52e416674fd68a48ed4 Mon Sep 17 00:00:00 2001 From: Atul Pratap Singh Date: Wed, 1 Aug 2012 08:40:26 +0530 Subject: [PATCH] Tested without initially populating data, now chart squeezes initially upto 10 values --- js/server_status.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/server_status.js b/js/server_status.js index 2b66d2be91..0633441b3e 100644 --- a/js/server_status.js +++ b/js/server_status.js @@ -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(); }