public DataSet(ArrayList<Entry> yVals,int type){
  this.mType=type;
  this.mYVals=yVals;
  if (yVals == null || yVals.size() <= 0)   return;
  calcMinMax();
  calcYValueSum();
}

public DataSet ( ArrayList < Entry > yVals , int type ) { this . mType = type ; this . mYVals = yVals ; if ( yVals == null || yVals . size ( ) <= 0 ) return ; calcMinMax ( ) ; calcYValueSum ( ) ; }
creates a new dataset object with the given values it represents and a type for identification amongst other dataset objects ( the type can be chosen freely and must not be equal to another type in the chartdata object ) .
