summaryrefslogtreecommitdiffstats
path: root/frontends/php/chart2.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/chart2.php')
-rw-r--r--frontends/php/chart2.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/php/chart2.php b/frontends/php/chart2.php
index 6c1b5c5e..7e7a62df 100644
--- a/frontends/php/chart2.php
+++ b/frontends/php/chart2.php
@@ -67,13 +67,14 @@
$graph->setYAxisMin(DBget_field($result,0,4));
$graph->setYAxisMax(DBget_field($result,0,5));
- $result=DBselect("select gi.itemid,i.description,gi.color,h.host,gi.drawtype from graphs_items gi,items i,hosts h where gi.itemid=i.itemid and gi.graphid=".$_REQUEST["graphid"]." and i.hostid=h.hostid order by gi.sortorder");
+ $result=DBselect("select gi.itemid,i.description,gi.color,h.host,gi.drawtype,gi.yaxisside from graphs_items gi,items i,hosts h where gi.itemid=i.itemid and gi.graphid=".$_REQUEST["graphid"]." and i.hostid=h.hostid order by gi.sortorder");
for($i=0;$i<DBnum_rows($result);$i++)
{
$graph->addItem(DBget_field($result,$i,0));
$graph->setColor(DBget_field($result,$i,0), DBget_field($result,$i,2));
$graph->setDrawtype(DBget_field($result,$i,0), DBget_field($result,$i,4));
+ $graph->setYAxisSide(DBget_field($result,$i,0), DBget_field($result,$i,5));
}
$graph->Draw();