Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

piechart using SVG

 
SaiPrasad Jukalkar
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
mani dalal
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1245
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is interesting.. great link.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic