-
27 Jun 2012 3:29 PM #1
Horizontal axis labels not positioned correctly in column chart
Horizontal axis labels not positioned correctly in column chart
The horizontal axis labels in the column renderer chart example aren't positioned correctly. In my own code I've tried all the TextAnchor options and they all look wrong. I poked around in CartesianAxis.drawHorizontalLabels(), and it seems like the following condition is backwards:
if (!vertical) {
x = Math.floor(point.getX() - (bbox.getHeight() / 2.0));
} else {
x = Math.floor(point.getX() - (bbox.getWidth() / 2.0));
}
but I haven't had time to investigate further. Here's a screenshot from the GXT explorer app:gxt_chart_labels_bug.png
-
5 Jul 2012 4:12 PM #2
Thanks for the report. This has been addressed in a previous thread and will be in the next release. http://staging.sencha.com/examples-d...nrendererchart
-
15 Aug 2012 1:29 PM #3
GXT 3.0.1 has been released and contains this fix.
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