title: MpAndroid line Chart - want to show x axis labels like 125,250,500,1000,2000,4000,8000
body: <p>I want to show axis labels like 125,250,500,1000,2000,4000,8000,... 
  in Which next value is summation of value itself. </p>
  
  <p>I have tried many ways but no result , </p>
  
  <pre><code>XAxis xl = chart.getXAxis();
  xl.setAvoidFirstLastClipping(true);
  float i = 125f;
  xl.setAxisMinimum(i);
  xl.setAxisMaximum(8000f); 
  xl.setGranularity(2*i);
  </code></pre>
  
  <p>and also tried , </p>
  
  <pre><code>xAxis1.setValueFormatter(new MyXAxisValueFormatterIncome()); 
  
  public class MyXAxisValueFormatterIncome extends ValueFormatter {
      @Override
      public String getFormattedValue(float value, AxisBase axis) {
          try {
              if (value &gt;= 125.0 &amp;&amp; value &lt;= 249) {
                  return "125";
              } else if (value &gt;= 250.0 &amp;&amp; value &lt;= 499) {
                  return "250";
              } else if (value &gt;= 500.0 &amp;&amp; value &lt;= 999.0) {
                  return "500";
              } else if (value &gt;= 1000.0 &amp;&amp; value &lt;= 1999.0) {
                  return "1000";
              } else if (value &gt;= 2000.0 &amp;&amp; value &lt;= 3999.0) {
                  return "2000";
              } else if (value &gt;= 4000.0 &amp;&amp; value &lt;= 7999.0) {
                  return "4000";
              } else {  //if (value == 6.0)
                  return "8000";
              }
          } catch (Exception e) {
              return "";
          }
      }
  </code></pre>
  
  <p>however , it is also not working. 
  Actually i want to show 125,250,500,1000,2000,4000,8000 - x axis labels , and  values can be varies from in between 125 to 8000. And Y axis values in between -10 to 120.
  Please suggest workaround or any other ways.</p>