public int determineMaxYValue(HashMap<ComparableLabel,Integer> dataPoints,Set<ComparableLabel> dateKeySet){
  Integer maxValue=Integer.MIN_VALUE;
  Integer minValue=Integer.MAX_VALUE;
  for (  ComparableLabel date : dateKeySet) {
    int tempInt=dataPoints.get(date);
    if (tempInt < minValue) {
      minValue=tempInt;
    }
    if (tempInt > maxValue) {
      maxValue=tempInt;
    }
  }
  return maxValue;
}

public int determineMaxYValue ( HashMap < ComparableLabel , Integer > dataPoints , Set < ComparableLabel > dateKeySet ) { Integer maxValue = Integer . MIN_VALUE ; Integer minValue = Integer . MAX_VALUE ; for ( ComparableLabel date : dateKeySet ) { int tempInt = dataPoints . get ( date ) ; if ( tempInt < minValue ) { minValue = tempInt ; } if ( tempInt > maxValue ) { maxValue = tempInt ; } } return maxValue ; }
returns the maximum y value for the set of datapoints used to draw the line graph * if * a maximum value was for the y axis was not passed in
