public DataSet(List<T> yVals,String label){
  super(label);
  this.mYVals=yVals;
  if (mYVals == null)   mYVals=new ArrayList<>();
  calcMinMax(0,mYVals.size());
}

public DataSet ( List < T > yVals , String label ) { super ( label ) ; this . mYVals = yVals ; if ( mYVals == null ) mYVals = new ArrayList < > ( ) ; calcMinMax ( 0 , mYVals . size ( ) ) ; }
creates a new dataset object with the given values it represents . also , a label that describes the dataset can be specified . the label can also be used to retrieve the dataset from a chartdata object .
