fixed error where the chart was not getting the correct max value for the y axis
fixed issue where the bar height was the inverse of the data