MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

Set order for axes? Invert axes?

Open Bishalsingh opened this issue 11 years ago • 1 comments

Is there any provision by which we can display graph in ascending/ decreasing order of X-Axis or Y-Axis?

Bishalsingh avatar Feb 27 '15 11:02 Bishalsingh

Yes. You can invert y-axes if you want to:

chart.getAxisLeft().setInverted(true);

This will let high values appear on the bottom of the chart, low values on top.

The x-axis cannot be manipulated in order.

Be aware that this feature is not included in the latest pre-release, only in the commits ahead.

PhilJay avatar Feb 27 '15 11:02 PhilJay