gorteganesh / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

setInitialRange values ignored #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set desired initial range using:
     XYMultipleSeriesRenderer.setInitialRange(rangeInitialValues)
2. Use Zoom tool and click on FitZoom icon

What is the expected output? What do you see instead?
Expect the chart to set axes according to rangeInitialValues above when the 
fitZoom tool is selected.  Instead, the range of X and Y axis is being set 
based on the actual data being plotted.

What version of the product binary library are you using?
0.6.0

Please provide any additional information below.
Problem seems to be caused by an inconsistency in 
XYMultipleSeriesRenderer.isInitialRangeSet().  This method returns
isMinXSet() && isMaxXSet() && isMinYSet() && isMaxYSet()

Instead it should return the value of some flag set inside 
XYMultipleSeriesRenderer.setInitialRange().
FitZoom.java source shows that the fit tool checks isInitialRangeSet() in order 
to determine if getInitialRange() is called or if the fit range is calculated 
from the dataset.

Original issue reported on code.google.com by em.cr...@gmail.com on 6 Mar 2011 at 5:13

GoogleCodeExporter commented 9 years ago
Fixed in SVN.

Original comment by dandrome...@gmail.com on 30 May 2011 at 4:46