20

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

user1737538
  • 497
  • 2
  • 7
  • 16

2 Answers2

52

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

neaGaze
  • 1,381
  • 22
  • 28
8

It is possible to put the XLabels to the bottom.

Call:

XLabels xl = chart.getXLabels();
xl.setPosition(XLabelPosition.BOTTOM);

Different y-axes descriptions (YLabels, with different data) are currently not supported.

Philipp Jahoda
  • 50,880
  • 24
  • 180
  • 187