MPAndroidChart: bottom x-axis and multiple y-axes

user1737538 picture user1737538 · Oct 30, 2014 · Viewed 10.1k times · Source

I have two questions about this awesome Android chart library:

1) I cannot find a way to put the x-axis at the bottom of the chart: is it possible?

2) is it possible to plot data against two (or more) y-axes on the same chart?

Thank you in advance

Answer

neaGaze picture neaGaze · Jul 8, 2015

A bit has changed in the library. Now you will need to do as follows:

XAxis xAxis = chart.getXAxis();
xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);

This will set the x-axis label at the bottom