[Tickets #2336] NEW: Impossible/difficult to set a min value on Plots

bugs@bugs.horde.org bugs at bugs.horde.org
Mon Jul 25 08:57:11 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=2336
-----------------------------------------------------------------------
 Ticket             | 2336
 Created By         | horde at addelei.nu
 Summary            | Impossible/difficult to set a min value on Plots
 Queue              | Horde Framework Packages
 State              | New
 Priority           | 1. Low
 Type               | Enhancement
 Owners             | 
+New Attachment     | SetMinValue.diff
-----------------------------------------------------------------------


horde at addelei.nu (2005-07-25 08:57) wrote:

It seems impossible to set a minimum value on Plots, ie the Y axis always
starts at 0. It is possible to set minY using the set() function or using
_findRange, however these are overwritten when calling draw() (or display())
since draw() calls initialize() which re-calculate these so I can't see a
way to change it persistently.

I propose an update as per the attached diff. It works by sending additional
parameters to draw(), minY is the value to be used for the "bottom" of the
chart, stepLabelsY is the step between the lines in the grid. No error
checking is done, this means that some parts of the line can be below the
chart area, this should probably be taken care of (deleting that part of the
line?).

The attached diff is agains the Chart.php found in Horde 3.0.4. It is tested
and it seems to work with the existing plot types.




More information about the bugs mailing list