added max and min for floating boxes in bar graph