Linuxkey007 / achartengine

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

Allow setting vertical alignment for Y-axis labels relative to gridlines #224

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make a line chart.
2. Make sure Y-axis labels are shown and gridlines are shown.

What is the expected output? What do you see instead?
Compare the gridlines with the Y-axis labels. The gridlines are aligned with 
the baseline of the labels. It would be nice if the labels could be adjusted so 
that the gridlines align with the center or top of the text labels. Maybe have 
a setYLabelsVerticalAlign() that takes one of three arguments: BOTTOM, CENTER, 
TOP.

Please provide a source code snippet that we can use to replicate the issue.

What version of the product binary library are you using?
1.0.0

Original issue reported on code.google.com by jdko...@gmail.com on 19 Jun 2012 at 9:08

GoogleCodeExporter commented 9 years ago
Added a setYLabelsVerticalPadding() in XYMultipleSeriesRenderer that you can 
use for aligning the Y labels.

Original comment by dandrome...@gmail.com on 15 Jan 2013 at 6:28

GoogleCodeExporter commented 9 years ago
From what I'm seeing you need to update the Draw method in 
XYMultipleSeriesRenderer so that "yLabel - 2" becomes "yLabel - 
mRenderer.getYLabelsVerticalPadding()".

This will support custom Y Labels, which the current implementation does not.

Original comment by adamgres...@gmail.com on 10 May 2013 at 6:49

GoogleCodeExporter commented 9 years ago
Thanks. Fixed.

Original comment by 4viewsoft@gmail.com on 13 May 2013 at 6:41