summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ab23c83)
raw | patch | inline | side by side (parent: ab23c83)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 17 Aug 2010 08:32:30 +0000 (08:32 +0000) | ||
committer | hickert <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 | patch | blob | history |
diff --git a/gosa-core/plugins/generic/statistics/class_statistics.inc b/gosa-core/plugins/generic/statistics/class_statistics.inc
index 889d5cf83a8b8fd015d9f9e19edb490a94b8a3f4..098292175d67ada5c06103ab3a00ed5f1cb7faab 100644 (file)
// 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;
}
$cnt ++;
}
-
-
$DataSet2->AddPoint($tmp, 'date');
$DataSet2->SetAbsciseLabelSerie('date');
$DataSet2->RemoveSerie('date');
// 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');