added legend to all charts