Properly limit graphs to first N elements, and plot longest bars at the top