Priya
07-07-2005, 07:24 AM
Hi friends,
I am trying to generate a pie chart... and i have taken a piece of code in an example of pie chart from the net... and the code is below..
<g style="stroke:black;stroke-width:1" transform="translate(350,150)">
<g style="fill:#6699cc" transform="rotate(-0) ">
<path d="M 0 0 h 130 A 130,130 0,0,0 115.13706634041603,-60.36104666523466 z"/>
<text class="values" x="63" y="-10" transform="rotate(0 63 -16)">8%
</text>
</g>
my doubt is how the values (x,y) endpoint of arc are derived ? i.e., the values of (115.13706634041603,-60.36104666523466) in the path command.......
Please let l me know are there any formulas behind it....
Thanks ,
Priya
I am trying to generate a pie chart... and i have taken a piece of code in an example of pie chart from the net... and the code is below..
<g style="stroke:black;stroke-width:1" transform="translate(350,150)">
<g style="fill:#6699cc" transform="rotate(-0) ">
<path d="M 0 0 h 130 A 130,130 0,0,0 115.13706634041603,-60.36104666523466 z"/>
<text class="values" x="63" y="-10" transform="rotate(0 63 -16)">8%
</text>
</g>
my doubt is how the values (x,y) endpoint of arc are derived ? i.e., the values of (115.13706634041603,-60.36104666523466) in the path command.......
Please let l me know are there any formulas behind it....
Thanks ,
Priya