title: MPAndroidChart X axis labels not aligned with bar graph
body: <p>I'm creating Combined chart with line chart and group bar chart using <a href="https://github.com/PhilJay/MPAndroidChart" rel="nofollow noreferrer">MPAndroidChart v3.0.2</a> but I found that the labels on the X-Axis are not aligned properly with the bar in group bar chart.</p>
  
  <p><strong>Below is the screenshot for the same.</strong></p>
  
  <p><a href="https://i.stack.imgur.com/r483e.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r483e.jpg" alt="Screenshot"></a></p>
  
  <p><strong>Code I am using for plotting the graph.</strong> </p>
  
  <pre><code>xVals = new ArrayList();
              xVals.add("January");
              xVals.add("February");
              xVals.add("March");
              xVals.add("April");
              xVals.add("May");
              xVals.add("June");
              xVals.add("July");
              xVals.add("August");
              xVals.add("September");
              xVals.add("October");
  
              XAxis xAxis = mChart.getXAxis();
              xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);
              xAxis.setAxisMinimum(0);        xAxis.setAxisMaximum(mChart.getBarData().getGroupWidth(groupSpace, barSpace) * xVals.size());
              xAxis.setGranularityEnabled(false);
              xAxis.setCenterAxisLabels(true);
              xAxis.setDrawGridLines(false);
              xAxis.setTextSize(8);
              xAxis.setLabelCount(xVals.size());
              xAxis.setValueFormatter(new IndexAxisValueFormatter(xVals));
  </code></pre>