diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-08-25 19:12:58 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-08-25 19:12:58 +0000 |
| commit | afd9f9f5ef1d002ac92f3cc8e2a733fac69c2c20 (patch) | |
| tree | 84aa824aedb5e1bfa0ca7a451699387f4685f0ff /frontends/php/chart2.php | |
| parent | 93248e9b70106966ef70e752a32d2528e46435b3 (diff) | |
| download | zabbix-afd9f9f5ef1d002ac92f3cc8e2a733fac69c2c20.tar.gz zabbix-afd9f9f5ef1d002ac92f3cc8e2a733fac69c2c20.tar.xz zabbix-afd9f9f5ef1d002ac92f3cc8e2a733fac69c2c20.zip | |
- 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
Diffstat (limited to 'frontends/php/chart2.php')
| -rw-r--r-- | frontends/php/chart2.php | 5 |
1 files changed, 4 insertions, 1 deletions
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"); |
