Fix calculation of bar height to account for x-axis labels