From: hickert Date: Tue, 17 Aug 2010 08:32:30 +0000 (+0000) Subject: Updated graph X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ce25f9a36f95194a3f8e657dbe2a14ea233f17cd;p=gosa.git Updated graph git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19401 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/generic/statistics/class_statistics.inc b/gosa-core/plugins/generic/statistics/class_statistics.inc index 889d5cf83..098292175 100644 --- a/gosa-core/plugins/generic/statistics/class_statistics.inc +++ b/gosa-core/plugins/generic/statistics/class_statistics.inc @@ -144,7 +144,7 @@ class statistics extends plugin // Collect data per category and store used timestamps foreach($entriesPerDate as $dateStr => $count){ $date = strtotime($dateStr); - $dataArray[$category][$date] = $count; + $dataArray[$category][$date] = log($count + 1); $dates[$date]=$date; } @@ -176,8 +176,6 @@ class statistics extends plugin $cnt ++; } - - $DataSet2->AddPoint($tmp, 'date'); $DataSet2->SetAbsciseLabelSerie('date'); $DataSet2->RemoveSerie('date'); @@ -198,7 +196,8 @@ class statistics extends plugin // Draw the cubic curve graph #$Test2->drawBarGraph($DataSet2->GetData(),$DataSet2->GetDataDescription(),TRUE); #$Test2->drawLineGraph($DataSet2->GetData(),$DataSet2->GetDataDescription(),TRUE); - $Test2->drawFilledLineGraph($DataSet2->GetData(),$DataSet2->GetDataDescription(),50,TRUE); + #$Test2->drawFilledLineGraph($DataSet2->GetData(),$DataSet2->GetDataDescription(),50,TRUE); + $Test2->drawFilledCubicCurve($DataSet2->GetData(),$DataSet2->GetDataDescription(),.1,20); // Finish the graph $DataSet2->RemoveSerie('date');