File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes piechart using SVG Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "piechart using SVG" Watch "piechart using SVG" New topic

piechart using SVG

SaiPrasad Jukalkar
Ranch Hand

Joined: Feb 20, 2001
Posts: 79
i am trying to create a pie chart using SVG and xslt, i have difficulty in calculating x and y coordinates and drawing the arc.
i have an example from xml bible.(following assumptions are made)
1.suppose radius of the circle is 100units the center of the circle at x=100, y=100.
3.start the arc at the position x=100-100 sin(30/2),y=100-100cos(30/2)
4.finish the arc at the position x=100+100sin(30/2), y=100-100cos(30/2)
please discuss this elaborately,
if you have any better way of doing this, pl let me know.
thanks in advance

mani dalal

Joined: Jun 08, 2001
Posts: 17
Hi Sai Prasad,
I need your help.
Tell me how to start developing svgs for charts.What s an xml bible.Pls give me the URL FOR THE SAME.
SaiPrasad Jukalkar
Ranch Hand

Joined: Feb 20, 2001
Posts: 79
hi manish,
here is the link to svg charts creation.
Fei Ng
Ranch Hand

Joined: Aug 26, 2000
Posts: 1242
this is interesting.. great link.
I agree. Here's the link:
subject: piechart using SVG
It's not a secret anymore!