Better handling of the last bar in histogram, and the corresponding pop-up.