I want to create a dynamic pie chart generated with PHP.

My Problem is: how to determine the curveto value for each wedge?

The source as shown below shows a pie-wedge, I can't find a way to determine the third and forth value of C (329 132 in this case).

<path id="Part3" d="M179 165 L245 76 C245 76 329 132 267 233 z"
style="fill:none;stroke:rgb(0,0,0);stroke-width:1"/>

Thanx in advance.

Other suggestions to create dynamic Pie-chart with PHP into SVG are also welcome.