View Full Version : [FIXED] Chart: Incorret xScale calculation when setting xNumericAxis Maximum & Minimum

26 Jan 2012, 2:45 AM
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 ?

30 Jan 2012, 1:39 PM
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
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
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.