From 3519d87e69137c7d7a33295371e0715bae61cbe3 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Mon, 14 Nov 2011 15:26:53 +0100 Subject: some clean up --- application/views/scripts/statistics/running.phtml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'application/views/scripts/statistics/running.phtml') diff --git a/application/views/scripts/statistics/running.phtml b/application/views/scripts/statistics/running.phtml index 44a07aa..7bf27b8 100755 --- a/application/views/scripts/statistics/running.phtml +++ b/application/views/scripts/statistics/running.phtml @@ -33,20 +33,18 @@ function plot() { } else if (poolID == 'default') { $('#plotBar').empty(); $('#plotPie').empty(); - } else refreshPlot(data.dataBar, data.dataPie, data.color); + } else refreshPlot(data.dataBar, data.dataPie); }, "json"); } -function refreshPlot(dataBar, dataPie, color) { +function refreshPlot(dataBar, dataPie) { $('#plotBar').empty(); $.jqplot('plotBar', dataBar, { seriesDefaults: { - //renderer: $.jqplot.PieRenderer, renderer:$.jqplot.BarRenderer, pointLabels: { show: true, location: 'e', edgeTolerance: -15 }, shadowAngle: 135, rendererOptions: { - //showDataLabels: true, barDirection: 'horizontal', varyBarColor : true } @@ -55,9 +53,7 @@ function refreshPlot(dataBar, dataPie, color) { yaxis: { renderer: $.jqplot.CategoryAxisRenderer } - }, - seriesColors: color, - highlighter: { show: false } + } }); $('#plotPie').empty(); $.jqplot('plotPie', dataPie, @@ -72,9 +68,7 @@ function refreshPlot(dataBar, dataPie, color) { lineLabels: true, varyBarColor : true } - }, - seriesColors: color - //legend: { show:true, location: 'e' } + } }); } -- cgit v1.2.3-55-g7522