add legend title change tips and pie chart method