summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/statistics/success.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/scripts/statistics/success.phtml')
-rwxr-xr-xapplication/views/scripts/statistics/success.phtml38
1 files changed, 6 insertions, 32 deletions
diff --git a/application/views/scripts/statistics/success.phtml b/application/views/scripts/statistics/success.phtml
index 8911033..e00a01d 100755
--- a/application/views/scripts/statistics/success.phtml
+++ b/application/views/scripts/statistics/success.phtml
@@ -29,16 +29,14 @@ function plot() {
$( "#noEventsDialog" ).dialog('open');
$('#plotBar').empty();
$('#plotPieS').empty();
- $('#plotPieT').empty();
} else if (poolID == 'default') {
$('#plotBar').empty();
$('#plotPieS').empty();
- $('#plotPieT').empty();
- } else refreshPlot(data.dataBar, data.dataPieS, data.dataPieT, data.color);
+ } else refreshPlot(data.dataBar, data.dataPieS, data.dataPieT);
}, "json");
}
-function refreshPlot(dataBar, dataPieS, dataPieT, color) {
+function refreshPlot(dataBar, dataPieS, dataPieT) {
$('#plotBar').empty();
$.jqplot('plotBar', dataBar, {
seriesDefaults: {
@@ -47,7 +45,6 @@ function refreshPlot(dataBar, dataPieS, dataPieT, color) {
pointLabels: { show: true, location: 'e', edgeTolerance: -15 },
shadowAngle: 135,
rendererOptions: {
- //showDataLabels: true,
barDirection: 'horizontal',
varyBarColor : true
}
@@ -56,9 +53,7 @@ function refreshPlot(dataBar, dataPieS, dataPieT, color) {
yaxis: {
renderer: $.jqplot.CategoryAxisRenderer
}
- },
- seriesColors: color,
- highlighter: { show: false }
+ }
});
$('#plotPieS').empty();
$.jqplot('plotPieS', dataPieS,
@@ -72,28 +67,8 @@ function refreshPlot(dataBar, dataPieS, dataPieT, color) {
showDataLabels: true,
varyBarColor : true
}
- },
- seriesColors: color
- //legend: { show:true, location: 'e' }
+ }
});
- /*$('#plotPieT').empty();
- $.jqplot('plotPieT', dataPieT,
- {
- title: 'Chart with ErrorType Labels',
- seriesDefaults: {
- // Make this a pie chart.
- renderer: jQuery.jqplot.PieRenderer,
- rendererOptions: {
- // Put data labels on the pie slices.
- // By default, labels show the percentage of the slice.
- showDataLabels: true,
- varyBarColor: true,
- dataLabels: 'percent'
- }
- },
- seriesColors: color
- //legend: { show:true, location: 'ne' }
- });*/
}
$(document).ready(function(){
@@ -127,9 +102,8 @@ $(function() {
</script>
<div>
-<div id="plotBar" class="spalte" style="height: 300px; width: 250px;"></div>
-<div id="plotPieS" class="spalte" style="height: 300px; width: 250px;"></div>
-<div id="plotPieT" class="spalte" style="height: 300px; width: 250px;"></div>
+<div id="plotBar" class="spalte" style="height: 300px; width: 350px;"></div>
+<div id="plotPieS" class="spalte" style="height: 300px; width: 350px;"></div>
</div>
<!-- no events -->