#013595: majorStep overridden if min and max are both set (ezcGraphChartElementNumericAxis)

Description:

if you set a min and max for ezcGraphChartElementNumericAxis and also the majorStep, the majorStep will be overridden.

file ./ezc/Graph/axis/numeric.php around line 290 currently has..

If min and max values are forced, we may not be able to find a
"nice" number for the steps. Try to find such a nice step size, or
fall back to a step size, which is just the span divided by 5.
if ( ( $this->properties['min'] !== null ) &&
( $this->properties['max'] !== null ) )

this should most likely be

If min and max values are forced, we may not be able to find a
"nice" number for the steps. Try to find such a nice step size, or
fall back to a step size, which is just the span divided by 5.
if ( ( $this->properties['min'] !== null ) &&
( $this->properties['max'] !== null ) &&
( $this->properties['majorStep'] === null ) )

since if you set all 3 you want your step to be used and not the default step.


Environment:

Operating System: N/A
PHP Version: 5.2.6
Database and version: N/A
Browser (and version):


- Attachments

No attachments for this issue.


- Comments

Thanks for the detailed bug report. The bug has been fixed in revision #8912 and will be part of the next release.

#258081 by Kore Nordmann on September 10th, 2008 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Graph
Affects 1.3 - Graph 1.3
Fix Version 2008.2alpha1 - eZ components 2008.2alpha1
Reporter Jordan Raub
Responsible Kore Nordmann
Status 0 Closed
Resolution Fixed
Created September 5th, 2008
Updated September 25th, 2008
Resolved September 10th, 2008
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels