Change barchart height based on dataset size

need to tweak this and sort the whitespace above and below too