code: static void normalize(List<AccumulatedValuesBean> values, List<String> names, int limit){
  		for (String name : names){
  			//System.out.println("normalizing "+name);
  			ArrayList<Float> valueCopy = new ArrayList<Float>(values.size());
  			//step1 transform everything to float
  			float min = Float.MAX_VALUE, max = Float.MIN_VALUE;
  			for (AccumulatedValuesBean v : values){
  				float val = Float.parseFloat(v.getValue(name));
  				if (val>max)
  					max = val;
  				if (val<min)
  					min = val;
  				valueCopy.add(val);
  			}
  			//System.out.println("1: "+valueCopy);
  			float range = max - min;
  			float multiplier = limit / range;
  			//System.out.println("range "+range+", multiplier "+multiplier);
  
  			//step2 recalculate
  			for (int i=0; i<values.size(); i++){
  				float newValue = (valueCopy.get(i)-min)*multiplier;
  				values.get(i).setValue(name, String.valueOf(newValue));
  			}
  		}
  	}
docs: /*test visibility