Updated pie chart generation script.