Add legend to charts.