Changed the way the legend it printed for bar.