ZABBIX BUGS AND ISSUES

verticalgrid and sign for negative values ​​of the ordinates

Details

  • Zabbix ID:
    RTF

Description

workaround:

--- frontends/php/include/classes/class.cchart.php.orig 2012-09-13 00:55:14.000000000 +0400
+++ frontends/php/include/classes/class.cchart.php 2012-09-13 00:53:53.000000000 +0400
@@ -1666,7 +1666,7 @@
         */
        protected function getYStepMarkerValueOffset($yAxis, $stepNumber) {
                $step = $this->gridStep[$yAxis];
- $minY = $this->m_minY[$yAxis];
+ $minY = abs($this->m_minY[$yAxis]);

                $offset = 0;
                if ($stepNumber > 0 && $minY) {

P.S. also not properly calculated min/max values ​​by fixing one of the boundaries

Issue Links

Activity

Hide
Alexei Vladishev added a comment -

How does the graph look without your patch applied?

Show
Alexei Vladishev added a comment - How does the graph look without your patch applied?
Hide
Vladimir Kravchenko added a comment - - edited

attached chart2.png - whitout patch
after patching - http://www.zabbix.com/forum/showthread.php?t=29524

p.s. or question about the reduced font? This is a cosmetic change, the patch does not change anything in the calculations.

Show
Vladimir Kravchenko added a comment - - edited attached chart2.png - whitout patch after patching - http://www.zabbix.com/forum/showthread.php?t=29524 p.s. or question about the reduced font? This is a cosmetic change, the patch does not change anything in the calculations.
Hide
Toms added a comment -

TESTED

Show
Toms added a comment - TESTED
Hide
Alexander Vladishev added a comment -

Fixed in pre-2.0.4 r30565 and pre-2.1.0 r30566.

Show
Alexander Vladishev added a comment - Fixed in pre-2.0.4 r30565 and pre-2.1.0 r30566.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: