AChartEngine: Align Y axis labels to the right side of the axis itself

I am using aChartEngine for android. I have a y-axis problem, when the values ​​go to 10000 or more, the left digit disappears (check the photo) in the photo, the values ​​are 7000-11500, but the values ​​above 10000 are 0000.0500., Etc.

I would like to set the y-axis labels to the right side of the axis or something like this

can anyone help?

knowing that i used

renderer.setYLabelsAlign(Align.RIGHT);

      

Y-Axis Labels

+3


source to share


2 answers


You can customize the fields of your graph:

renderer.setMargins(margins);

      



where fields are an array [top, left, bottom, right]

If you want to set the alignment to the right side of the grid, just set Align.LEFT

, which means they are aligned to the left.

+1


source


renderer.setYLabelsAngle(angle)

      



To view the Y-axis date, if the fields are frozen, so that the data is displayed in an oblique format that will show more characters.
In order to view the y-axis labels, you must set the field spacing.

+2


source







All Articles