public DataSet(List<T> yVals,String label){
  this.mLabel=label;
  this.mYVals=yVals;
  if (mYVals == null)   mYVals=new ArrayList<T>();
  mColors=new ArrayList<Integer>();
  mColors.add(Color.rgb(140,234,255));
  calcMinMax(mLastStart,mLastEnd);
  calcYValueSum();
}

public DataSet ( List < T > yVals , String label ) { this . mLabel = label ; this . mYVals = yVals ; if ( mYVals == null ) mYVals = new ArrayList < T > ( ) ; mColors = new ArrayList < Integer > ( ) ; mColors . add ( Color . rgb ( 140 , 234 , 255 ) ) ; calcMinMax ( mLastStart , mLastEnd ) ; calcYValueSum ( ) ; }
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 .
