Code

Updated chart generation
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 17 Aug 2010 14:37:33 +0000 (14:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 17 Aug 2010 14:37:33 +0000 (14:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19405 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 384af4b499d862519599206750a708b2ab081348..3f69ca1dfa9bc242d54a9d8ccd4bb318270105a1 100644 (file)
@@ -193,7 +193,7 @@ class statistics extends plugin
                     $DataSet2->RemoveSerie('date');  
 
                     $Test2 = new pChart(700,230);  
-                    $Test2->setFixedScale(1,$max);  
+                    $Test2->setFixedScale(0.0001,$max);  
                     $Test2->setFontProperties("./themes/default/fonts/LiberationSans-Regular.ttf",10);  
                     $Test2->setGraphArea(50,30,585,200);  
                     $Test2->drawFilledRoundedRectangle(7,7,693,223,5,240,240,240);  
@@ -210,8 +210,7 @@ class statistics extends plugin
 
                     // Draw the cubic curve graph  
                     if(count($dataArray)){
-                        $Test2->drawFilledCubicCurve($DataSet2->GetData(),$DataSet2->GetDataDescription(),.1,20);  
- #                       $Test2->drawLineGraph($DataSet2->GetData(),$DataSet2->GetDataDescription());
+                        $Test2->drawFilledLineGraph($DataSet2->GetData(),$DataSet2->GetDataDescription(),50,TRUE);
                         $Test2->drawLegend(600,30,$DataSet2->GetDataDescription(),255,255,255);  
                     }