adding maxVal to use for the range of the bar chart