summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes/chart.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/classes/chart.inc.php')
-rw-r--r--frontends/php/include/classes/chart.inc.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/frontends/php/include/classes/chart.inc.php b/frontends/php/include/classes/chart.inc.php
index 8fb74055..4a6668fa 100644
--- a/frontends/php/include/classes/chart.inc.php
+++ b/frontends/php/include/classes/chart.inc.php
@@ -504,8 +504,9 @@ class Chart extends Graph{
function calculateMinY($side){
if($this->yaxistype==GRAPH_YAXIS_TYPE_FIXED){
return $this->yaxismin;
- }
- else{
+ } else if ($this->yaxistype==GRAPH_YAXIS_TYPE_CALCULATED_0_MIN) {
+ return 0;
+ } else{
unset($minY);
for($i=0;$i<$this->num;$i++){
@@ -1102,4 +1103,4 @@ class Chart extends Graph{
ImageOut($this->im);
}
}
-?> \ No newline at end of file
+?>