private float[] calcBorderValues(){
  float max=Integer.MIN_VALUE;
  float min=Integer.MAX_VALUE;
  for (  ChartSet set : chartView.data) {
    for (    ChartEntry e : set.getEntries()) {
      if (e.getValue() >= max)       max=e.getValue();
      if (e.getValue() <= min)       min=e.getValue();
    }
  }
  float[] result={min,max};
  return result;
}

private float [ ] calcBorderValues ( ) { float max = Integer . MIN_VALUE ; float min = Integer . MAX_VALUE ; for ( ChartSet set : chartView . data ) { for ( ChartEntry e : set . getEntries ( ) ) { if ( e . getValue ( ) >= max ) max = e . getValue ( ) ; if ( e . getValue ( ) <= min ) min = e . getValue ( ) ; } } float [ ] result = { min , max } ; return result ; }
calculates the min / max value .
