You are here: PNG Piecharts « PHP Programming Language « IT news, forums, messages
PNG Piecharts

Posted by Alfred Whitney on 10/22/06 07:50

I've got a condition where I can't use pear or other add-ons on this
server and I need to draw SVG piecharts in PHP, save the file, shell
out and convert with ImageMagick to PNG, and display them. I've got the
ImageMagick 'convert' command down with...

convert /tmp/tmp1.svg /tmp/tmp1.png

....and I have found an excellent SVG piechart example here:

http://www.codestore.net/store.nsf/unid/EPSD-5DTT4L?OpenDocument
(See first SVG sample code)

....but I can't figure out how to compute the L (lineto) and the ending
of the A (arc) values. I mean, you can't just choose arbitrary numbers
or you end up with a wobbly mess. That's where sine and cosine come in.

Anyone done this before?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация