add a legend to the third bar chart