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);
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.
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.