diff options
Diffstat (limited to 'ui/include/classes/graph/CSvgGraph.php')
-rw-r--r-- | ui/include/classes/graph/CSvgGraph.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/include/classes/graph/CSvgGraph.php b/ui/include/classes/graph/CSvgGraph.php index c135b29ed4c..e7077137f48 100644 --- a/ui/include/classes/graph/CSvgGraph.php +++ b/ui/include/classes/graph/CSvgGraph.php @@ -562,8 +562,10 @@ class CSvgGraph extends CSvg { $this->left_y_is_binary = $this->left_y_units === 'B' || $this->left_y_units === 'Bps'; + $calc_power = $this->left_y_units === '' || $this->left_y_units[0] !== '!'; + $result = calculateGraphScaleExtremes($this->left_y_min, $this->left_y_max, $this->left_y_is_binary, - $this->left_y_min_calculated, $this->left_y_max_calculated, $rows_min, $rows_max + $calc_power, $this->left_y_min_calculated, $this->left_y_max_calculated, $rows_min, $rows_max ); [ @@ -591,8 +593,10 @@ class CSvgGraph extends CSvg { $this->right_y_is_binary = $this->right_y_units === 'B' || $this->right_y_units === 'Bps'; + $calc_power = $this->right_y_units === '' || $this->right_y_units[0] !== '!'; + $result = calculateGraphScaleExtremes($this->right_y_min, $this->right_y_max, $this->right_y_is_binary, - $this->right_y_min_calculated, $this->right_y_max_calculated, $rows_min, $rows_max + $calc_power, $this->right_y_min_calculated, $this->right_y_max_calculated, $rows_min, $rows_max ); [ |