public void addEntry(Entry e,int dataSetIndex){
  if (mDataSets.size() > dataSetIndex && dataSetIndex >= 0) {
    float val=e.getVal();
    mYValCount+=1;
    mYValueSum+=val;
    if (mYMax < val)     mYMax=val;
    if (mYMin > val)     mYMin=val;
    T set=mDataSets.get(dataSetIndex);
    if (set != null) {
      if (set.getAxisDependency() == AxisDependency.LEFT) {
        if (mLeftAxisMax < e.getVal())         mLeftAxisMax=e.getVal();
        if (mLeftAxisMin > e.getVal())         mLeftAxisMin=e.getVal();
      }
 else {
        if (mRightAxisMax < e.getVal())         mRightAxisMax=e.getVal();
        if (mRightAxisMin > e.getVal())         mRightAxisMin=e.getVal();
      }
      handleEmptyAxis(getFirstLeft(),getFirstRight());
      set.addEntry(e);
    }
  }
 else {
    Log.e("addEntry","Cannot add Entry because dataSetIndex too high or too low.");
  }
}

public void addEntry ( Entry e , int dataSetIndex ) { if ( mDataSets . size ( ) > dataSetIndex && dataSetIndex >= 0 ) { float val = e . getVal ( ) ; mYValCount += 1 ; mYValueSum += val ; if ( mYMax < val ) mYMax = val ; if ( mYMin > val ) mYMin = val ; T set = mDataSets . get ( dataSetIndex ) ; if ( set != null ) { if ( set . getAxisDependency ( ) == AxisDependency . LEFT ) { if ( mLeftAxisMax < e . getVal ( ) ) mLeftAxisMax = e . getVal ( ) ; if ( mLeftAxisMin > e . getVal ( ) ) mLeftAxisMin = e . getVal ( ) ; } else { if ( mRightAxisMax < e . getVal ( ) ) mRightAxisMax = e . getVal ( ) ; if ( mRightAxisMin > e . getVal ( ) ) mRightAxisMin = e . getVal ( ) ; } handleEmptyAxis ( getFirstLeft ( ) , getFirstRight ( ) ) ; set . addEntry ( e ) ; } } else { Log . e ( "addEntry" , "Cannot add Entry because dataSetIndex too high or too low." ) ; } }
adds an entry to the dataset at the specified index . entries are added to the end of the list .
