Summary | Impossible/difficult to set a min value on Plots |
Queue | Horde Framework Packages |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | chuck (at) horde (dot) org |
Requester | horde (at) addelei (dot) nu |
Created | 07/25/2005 (7296 days ago) |
Due | |
Updated | 08/03/2005 (7287 days ago) |
Assigned | 07/28/2005 (7293 days ago) |
Resolved | 08/03/2005 (7287 days ago) |
Milestone | |
Patch | No |
State ⇒ Resolved
time to work on this myself now, so I'm committing it.
State ⇒ Assigned
New Attachment: SetMinValue_2.diff
curly braces, indentation.
New Attachment: DontDrawBelowMinY_2.diff
curly braces, indentation.
State ⇒ Feedback
braces, indentation.
New Attachment: DontDrawWithoutRange.diff
drawing outside of the drawing region.
This patch simply ignores y-values < minY. It could be argued that the
user should be warned that some values are ignored, this patch doesn't
do anything like that.
In case of a line plot, the line is broken by the ignored value. If
the dataset contains (toLowValue, OKValue, toLowValue) a single dot is
made at the accepted value.
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Impossible/difficult to set a min value on Plots
Queue ⇒ Horde Framework Packages
New Attachment: SetMinValue.diff
State ⇒ New
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.