I need a PHP script that can draw a simple pie chart using PHP's built in GD Library. It should be able to accept any number of numerical values as input, and draw a slice for each value that is the correct percentage of the total. The input will also specify the hex color that each slice should be.
I will need to have exclusive ownership and copyright of the code written for this project. All of the code needs to be custom, and can't use any external libraries except for the GD library built into PHP.
Here is example input the script will receive, and the attached [url removed, login to view] shows the resulting image the script should create.
$graph_data = array(