[ZBX-5580] verticalgrid and sign for negative values ??of the ordinates Created: 2012 Sep 13  Updated: 2017 May 30  Resolved: 2012 Sep 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.0.3
Fix Version/s: 2.0.4rc1, 2.1.0

Type: Incident report Priority: Major
Reporter: Vladimir Kravchenko Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: graphs, negative
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File chart2.png    
Issue Links:
Duplicate
is duplicated by ZBX-5931 no grid in negative part of graph Closed

 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



 Comments   
Comment by Alexei Vladishev [ 2012 Sep 13 ]

How does the graph look without your patch applied?

Comment by Vladimir Kravchenko [ 2012 Sep 13 ]

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.

Comment by Toms (Inactive) [ 2012 Sep 19 ]

TESTED

Comment by Alexander Vladishev [ 2012 Oct 06 ]

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

Generated at Fri Apr 26 08:48:01 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.