1

I'm building a simple bar graph, with android MPChart.

The problem I'm having is that the values are being offset about half of the bar width to the left:

bar_graph

I have set: barChart.setExtraOffsets(0f, 0f, 0f, 16f)

barChart.xAxis.axisMinimum = 0f

I'm not sure how to fix this.

Matt
  • 12,848
  • 2
  • 31
  • 53
Manuel Munoz
  • 753
  • 1
  • 6
  • 15

1 Answers1

0

As it is only for the first bar, try negative value:

barChart.xAxis.setAxisMinimum(-0.5f);

For more details: See here

H A Tanim
  • 141
  • 1
  • 6