Skip to content

howto rotate axis labels

Erich Seifert edited this page Mar 14, 2016 · 1 revision

How can I rotate axis labels?

Use the tickLabelRotation of the axis renderer to set the rotation angle of the axis labels in degrees:

AxisRenderer rendererX = plot.getAxisRenderer(XYPlot.AXIS_X);
rendererX.setTickLabelRotation(90.0);