-
26 Jan 2012 2:45 AM #1
Chart: Incorret xScale calculation when setting xNumericAxis Maximum & Minimum
Chart: Incorret xScale calculation when setting xNumericAxis Maximum & Minimum
To reproduce:
Create a chart with x & y Axis
Update Maximum & Minimum (NumericAxis.setMinimum).
You will see after render chart, the xScale do not calculate correctly.
I think the problem is probably in ScatterSeries.calculateBounds() method when updating minX & maxX only according yAxisPosition... so only minY & maxY is calculated therefore yScale is correct but not xScale that calculate according the max & min items values regarding the new axis limits.
I'm using GXT 3.0Beta2.
Tested both Firefox & Chrome browsers
Is it really a bug ?
Thanks
-
30 Jan 2012 1:39 PM #2
Thanks for pointing that out. This is now fixed for Area, Bar, Line and Scatter Series. The fix is currently in SVN and will be in the next release. Similar to the y the series will have a xAxisPosition to base its scale on.
-
31 Jan 2012 12:30 AM #3
Another related
Another related
Thanks Brendan
I noticed that if the items yValues are less than 9 I'm getting bad scaling (like attached) like there is no float values scaling...
I hope that fix that one as well...
is it?
Thanks in advance
-
6 Feb 2012 3:44 PM #4
Do you mean the displayed values on the y-axis? That is because the default label provider truncates the values. You can set a custom one using axis.setLabelProvider.
Success! Looks like we've fixed this one. According to our records the fix was applied for
a bug in our system
in
a recent build.


Reply With Quote