adding in logic check on min and max entry for bar graph