Add legend to charts