wangyao5 / achartengine

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

Alignment does not work correctly for custom text labels with multiple Y axes #116

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
------------------------------------
1. Create a LineChartView with XYMultipleSeriesDataset and 
XYMultipleSeriesRenderer
2. Set custom Y axis labels for each Y axis with addYTextLabel(y, text, scale)
3. Set the second Y axis alignment to the right with 
renderer.setYAxisAlign(Align.RIGHT, 1);
4. Set text alignment to right for the first Y axis with 
renderer.setYLabelsAlign(Align.RIGHT, 0);
5. Set text alignment to left for the second Y axis with 
renderer.setYLabelsAlign(Align.LEFT, 1);

What is the expected output? What do you see instead?
--------------------------------------------------
The first Y axis labels should right aligned (displayed to the left of the axis 
line), and the second Y axis labels should be left aligned (displayed to the 
right of the axis line). Instead, both axes labels are left aligned.

If custom text labels are not used, and instead the labels are automatically 
generated from the data (ie, skip step 2 above), the labels display correctly 
on either side of the axes.

What version of the product binary library are you using?
----------------------------------------------------
0.7.0

Original issue reported on code.google.com by mdpea...@gmail.com on 12 Aug 2011 at 3:07

GoogleCodeExporter commented 9 years ago
Fixed in SVN rev. r354.

Original comment by dandrome...@gmail.com on 11 Jan 2012 at 5:06