implement the pie chart for the result