From: hickert Date: Wed, 25 Aug 2010 07:07:32 +0000 (+0000) Subject: Updated chart rendering X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f2466d831e2e6b21a8e73daea64476a8dbada71a;p=gosa.git Updated chart rendering git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19447 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/generic/statistics/chartClasses/class_memoryUsageChart.inc b/gosa-core/plugins/generic/statistics/chartClasses/class_memoryUsageChart.inc index a3f891486..2dd9f87f7 100644 --- a/gosa-core/plugins/generic/statistics/chartClasses/class_memoryUsageChart.inc +++ b/gosa-core/plugins/generic/statistics/chartClasses/class_memoryUsageChart.inc @@ -36,7 +36,9 @@ class memoryUsageChart extends statChart $dataSet->AddAllSeries(); $dataSet->AddPoint($this->graphData['dates'], 'date'); $dataSet->SetAbsciseLabelSerie('date'); - + + echo $this->enableCaching; + // Read graph from cache? $pCache = new pCache('/var/spool/gosa/'); if($this->enableCaching && $pCache->IsInCache(get_class(),$dataSet->GetData())){ @@ -62,7 +64,8 @@ class memoryUsageChart extends statChart $chart->drawLegend(650,30,$dataSet->GetDataDescription(),255,255,255); $chart->drawScale($dataSet->GetData(),$dataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2, FALSE); - $chart->drawFilledCubicCurve($dataSet->GetData(),$dataSet->GetDataDescription(),.1,50); +# $chart->drawFilledCubicCurve($dataSet->GetData(),$dataSet->GetDataDescription(),.1,50); + $chart->drawFilledLineGraph($dataSet->GetData(),$dataSet->GetDataDescription(),50,TRUE); // Generate new and unique graph id $this->graphID = preg_replace("/[^0-9]/","",microtime(TRUE));