title: How to remove decimal value from BarChart MPAndroid Chart? I tried several methods but didn't work
body: <p><a href="https://i.stack.imgur.com/f7blo.jpg" rel="nofollow noreferrer">enter image description here</a><strong>I tried all methods but I could not remove the decimal from bar label. How can I remove decimal part from the bar label</strong></p>
  <pre><code>      barData.setValueFormatter(new ValueFormatter() {
          @Override
          public String getFormattedValue(float value) {
  
              if (value &gt; 0){
                  return super.getFormattedValue((int)value);
              }else{
                  return &quot;&quot;;
              }
          }
  
      });
  </code></pre>