Afterwards, you'll increase the percentage sum by an amount relative to 2*PI (a circumference) and the color in respect to the total. Afterwards, draw a line from the center of the circle to the percentage of circumference that corresponds to the division. We can get this value using simple trigonometry. You can also use a similar value to paint in the division. (Code in next comment)