0

I'm developing an app that requires some graphs to be show for which I am using MPAndroidChart. The layout requested to me was similar to the following one:

How do I set the legends ( in the image Jun, May, Apr ) beside the bars like the image above?

I've tried changing the <HorizontalBarChart>.Legend.Position but it didn't what I'm looking for.

Philipp Jahoda
  • 50,880
  • 24
  • 180
  • 187
auhmaan
  • 726
  • 1
  • 8
  • 28
  • check this https://stackoverflow.com/questions/43687572/show-labels-on-right-and-values-to-left-side-of-horizontal-bar-chart-mpandroidch/43737515#43737515 – sauvik Jul 24 '17 at 06:35

1 Answers1

0

The labels "Jun", "May", ... you are seeing on the left side of the chart are actually the XAxis of the HorizontalBarChart.

You can customize them by using the ValueFormatter.

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