Add legend to bar chart.