B Aristide B Aristide - 1 year ago 74
Android Question

Bar Chart how to set xAxis entries in BOTTOM and radial position

With my code the x values are positioned horizontally below my graph but I want also they are in an oblique position (or radial) and not horizontal.

XAxis xAxis = mChart.getXAxis();

Answer Source

You can rotate the labels of the XAxis like this:


You can find more information on this method in the XAxis documentation:

setLabelRotationAngle(floatĀ angle): Sets the angle for drawing the X axis labels (in degrees).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download