From 5bbe379e590e67861af8afa72ecd4a42f86a8d7e Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 25 Aug 2010 15:53:29 +0000 Subject: [PATCH] Added object count chart git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19451 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../statistics/chartClasses/class_objectCountChart.inc | 6 +++--- .../generic/statistics/chartClasses/class_statChart.inc | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gosa-core/plugins/generic/statistics/chartClasses/class_objectCountChart.inc b/gosa-core/plugins/generic/statistics/chartClasses/class_objectCountChart.inc index ce543020a..b5cf340b2 100644 --- a/gosa-core/plugins/generic/statistics/chartClasses/class_objectCountChart.inc +++ b/gosa-core/plugins/generic/statistics/chartClasses/class_objectCountChart.inc @@ -15,7 +15,7 @@ class objectCountChart extends statChart */ function render() { - $lineMax = 100; + $lineMax = 20; $gData = $this->graphData; $dataSet = new pData; $seriesCnt = 0; @@ -59,7 +59,7 @@ class objectCountChart extends statChart } $chart = new pChart(900,230); - $chart->setFixedScale(0.000,$lineMax); + $chart->setFixedScale(0,$lineMax); $chart->setFontProperties("./themes/default/fonts/LiberationSans-Regular.ttf",10); $chart->setGraphArea(50,28,630,200); $chart->drawFilledRoundedRectangle(7,7,693,223,5,240,240,240); @@ -73,9 +73,9 @@ class objectCountChart extends statChart // Only draw this graph if we've at least one series to draw! if($seriesCnt){ $chart->drawFilledLineGraph($dataSet->GetData(),$dataSet->GetDataDescription(),50,TRUE); + $chart->drawLegend(720,0,$dataSet->GetDataDescription(),255,255,255); } - $chart->drawLegend(720,0,$dataSet->GetDataDescription(),255,255,255); // Generate new and unique graph id $this->graphID = preg_replace("/[^0-9]/","",microtime(TRUE)); diff --git a/gosa-core/plugins/generic/statistics/chartClasses/class_statChart.inc b/gosa-core/plugins/generic/statistics/chartClasses/class_statChart.inc index 97d723239..7cbba822b 100644 --- a/gosa-core/plugins/generic/statistics/chartClasses/class_statChart.inc +++ b/gosa-core/plugins/generic/statistics/chartClasses/class_statChart.inc @@ -85,9 +85,10 @@ class statChart{ foreach($list as $key => $item){ $checked = (in_array($key, $this->skipSeries))? '': 'checked'; $str .= "". - " {$item}". + " {$checked}>". " "; } return($str); -- 2.30.2