summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a2ff834)
raw | patch | inline | side by side (parent: a2ff834)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 20 Aug 2010 15:18:42 +0000 (15:18 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 20 Aug 2010 15:18:42 +0000 (15:18 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19425 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 ccd3edb7ca308931df5c5ddfe49f23f7dc30c5e6..e8febffa5c3cb5409f962768fa4c98dda0cdf741 100644 (file)
$smarty->assign('graph1DatePicker1', $this->graph1DatePicker1);
$smarty->assign('graph1DatePicker2', $this->graph1DatePicker2);
+ $this->skipSeries = array('users',
+// 'gofonmacro',
+ 'opsi, server, workstation, terminal, printer, phone, winworkstation, component',
+ 'acl',
+ 'groups',
+ 'department');
+ $this->reloadGraphs();
+
// Do not render anything if we are not prepared to send and receive data via rpc.
$smarty->assign("rpcConfigured", $this->rpcConfigured);
$smarty->assign("validRpcHandle", TRUE);
$lineMax = 100;
$errorMax = (max($gData['errorsPerInterval']) < 100)? 100:max($gData['errorsPerInterval']);
$dataSet = new pData;
+ $seriesCnt = 0;
foreach($gData['actionsPerInterval'] as $category => $entriesPerDate){
- if(empty($category)) continue;
+ if(empty($category) || in_array($category, $this->skipSeries)) continue;
// Add results to our data set.
$dataSet->AddPoint($entriesPerDate, $category);
// Detect maximum value, to adjust the Y-Axis
$tmpMax = max($entriesPerDate);
if($tmpMax > $lineMax) $lineMax = $tmpMax;
+ $seriesCnt ++;
}
// Add timeline
$chart->drawTitle(50,22,"Plugin usage over time",50,50,50,585);
$chart->drawScale($dataSet->GetData(),$dataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2, TRUE);
$chart->drawFilledLineGraph($dataSet->GetData(),$dataSet->GetDataDescription(),50,TRUE);
- $chart->setColorPalette(count($gData['actionsPerInterval']),255,0,0);
+ $chart->setColorPalette($seriesCnt,255,0,0);
// Draw legend
$dataSet->AddPoint($gData['errorsPerInterval'], 'Errors');