Charts: Update pie chart code