I don't know how to hide the y axis only. I want the numbers to stay but remove the line. Do you know how to do that?
BR
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 such as 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);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With