| 1 |
<?php |
<?php |
| 2 |
// $Id: graphstat_render.inc,v 1.13.2.1 2009/01/25 14:32:28 profix898 Exp $ |
// $Id: graphstat_render.inc,v 1.1.2.1 2009/01/25 21:08:34 profix898 Exp $ |
| 3 |
|
|
| 4 |
function graphstat_render_graph($group, $key) { |
function graphstat_render_graph($group, $key) { |
| 5 |
global $user; |
global $user; |
| 83 |
$plot->SetXTickLabelPos('none'); |
$plot->SetXTickLabelPos('none'); |
| 84 |
$plot->SetYTitle(isset($graph['#ylabel']) ? $graph['#ylabel'] : ''); |
$plot->SetYTitle(isset($graph['#ylabel']) ? $graph['#ylabel'] : ''); |
| 85 |
$plot->SetXLabelAngle(90); |
$plot->SetXLabelAngle(90); |
| 86 |
if (isset($graph['#legend'])) { |
if (isset($data['#legend'])) { |
| 87 |
|
$plot->SetLegend($data['#legend']); |
| 88 |
|
unset($data['#legend']); |
| 89 |
|
} |
| 90 |
|
else if (isset($graph['#legend'])) { |
| 91 |
$plot->SetLegend($graph['#legend']); |
$plot->SetLegend($graph['#legend']); |
| 92 |
} |
} |
| 93 |
// Push graph data into the plot renderer |
// Push graph data into the plot renderer |