Code

Updated graph
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 17 Aug 2010 08:32:30 +0000 (08:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 17 Aug 2010 08:32:30 +0000 (08:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19401 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/statistics/class_statistics.inc

index 889d5cf83a8b8fd015d9f9e19edb490a94b8a3f4..098292175d67ada5c06103ab3a00ed5f1cb7faab 100644 (file)
@@ -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');