From afd9f9f5ef1d002ac92f3cc8e2a733fac69c2c20 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Wed, 25 Aug 2004 19:12:58 +0000 Subject: - added support for customised Y axis for graphs (Alexei) - added columns graphs.(yaxistype|yaxismin|yaxismax) (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@1405 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/chart2.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'frontends/php/chart2.php') diff --git a/frontends/php/chart2.php b/frontends/php/chart2.php index 5d19b89b..deba7a41 100644 --- a/frontends/php/chart2.php +++ b/frontends/php/chart2.php @@ -40,7 +40,7 @@ $graph->setBorder(0); } - $result=DBselect("select name,width,height from graphs where graphid=".$_GET["graphid"]); + $result=DBselect("select name,width,height,yaxistype,yaxismin,yaxismax from graphs where graphid=".$_GET["graphid"]); $name=DBget_field($result,0,0); if(isset($_GET["width"])&&$_GET["width"]>0) @@ -63,6 +63,9 @@ $graph->setWidth($width); $graph->setHeight($height); $graph->setHeader(DBget_field($result,0,0)); + $graph->setYAxisType(DBget_field($result,0,3)); + $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=".$_GET["graphid"]." and i.hostid=h.hostid order by gi.sortorder"); -- cgit