File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

piechart using SVG

SaiPrasad Jukalkar
Ranch Hand

Joined: Feb 20, 2001
Posts: 79
hi,
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
2.place 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
saiprasad.


JSP
mani dalal
Greenhorn

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.
bYE,
Manish
SaiPrasad Jukalkar
Ranch Hand

Joined: Feb 20, 2001
Posts: 79
hi manish,
here is the link to svg charts creation.
http://www-106.ibm.com/developerworks/education/transforming-xml/xmltosvg/index.html
saiprasad.
Fei Ng
Ranch Hand

Joined: Aug 26, 2000
Posts: 1242
this is interesting.. great link.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: piechart using SVG