Add legend to pie and boxplot charts