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
Original issue reported on code.google.com by
em.cr...@gmail.com
on 6 Mar 2011 at 5:13