public void clearValues(){
  if (mDataSets != null) {
    mDataSets.clear();
  }
  notifyDataChanged();
}

public void clearValues ( ) { if ( mDataSets != null ) { mDataSets . clear ( ) ; } notifyDataChanged ( ) ; }
clears this data object from all datasets and removes all entries . don ' t forget to invalidate the chart after this .
