Hide y-axis with AChartEngine only
I don't know how to hide only the y-axis. I want the numbers to stay but remove the line. Do you know how to do it?
BR
+3
Sulby
source
to share
1 answer
You can hide both axes this way:
renderer.setShowAxes(false);
You can hide the grid independently:
renderer.setShowGridY(false);
If the above is not enough, you can set the margins, for example, the Y-axis is not visible and move the Y-axis labels to the right:
renderer.setMargins(new int[] {20, -1, 10, 20});
renderer.setYLabelsAlign(Align.LEFT);
renderer.setYLabelsPadding(-10);
+8
Dan D.
source
to share