[prev in list] [next in list] [prev in thread] [next in thread] 

List:       imagemagick-user
Subject:    RE: [magick-users] Drawing pie chart
From:       "Hugh Brackett" <ebrackett () citi-us ! com>
Date:       2003-07-31 20:43:13
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


http://www.w3.org/TR/SVG/paths.html has an example of drawing a pie chart
using
a path with eliptical arcs.

You can almost feed the path element straight to -draw. Put the attributes
(fill, stroke, etc) before path, though.
You could also generate SVG and have ImageMagick convert it for you.
 A bit of digging should turn up some open source software for making pie
charts.


 -----Original Message-----
From: magick-users-bounces@imagemagick.org
[mailto:magick-users-bounces@imagemagick.org]On Behalf Of Karin Brede
Sent: Thursday, July 31, 2003 12:06 PM
To: magick-users@imagemagick.org
Subject: [magick-users] Drawing pie chart



  Hello,

  I've been trying to draw a pie chart filled with a pattern for some while
now using the command line tool.
  I can draw circles or squares with the prettiest patterns, I even get some
sort of arc drawn.

  But I'm totally puzzled as to draw a 360 degrees pie chart with different
slices.

  Could anyone point me to some documentation (other than the one on
ImagesMagick Server)? Even better would be a tutorial with examples.

  Once I get the pie chart done with the command line tool, I will hopefully
be able to integrate the thing into a PHP-page using the exec()-function or
the like. Or is there a better way to do this with PHP? (I already tried the
gd-functions, but that didn't get me all the way through either).

  Any hint will be greatly appreciated,
  Karin

  --
  I. A. Karin Brede, Web Development
  uni-X Software AG       Werbung & Neue Medien
  Alter Steinweg 5        48143 Münster
  Tel. +49-251-9191-0   Fax +49-251-9191-199
  http://www.uni-X.com     brede@uni-X.com

[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff><A href="http://www.w3.org/TR/SVG/paths.html"><FONT 
face=Arial size=2>http://www.w3.org/TR/SVG/paths.html</FONT></A><FONT 
face=Arial><FONT size=2>&nbsp;<SPAN class=343101520-31072003>has an example of 
drawing a pie chart using</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT color=#0000ff><FONT face=Arial><FONT size=2><SPAN 
class=343101520-31072003>a path with eliptical 
arcs.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT color=#0000ff><FONT face=Arial><FONT size=2><SPAN 
class=343101520-31072003></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff><FONT face=Arial><FONT size=2><SPAN 
class=343101520-31072003>You can almost feed the path element straight to -draw. 
Put the attributes (fill, stroke, etc)&nbsp;before path, 
though.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT color=#0000ff><FONT face=Arial><FONT size=2><SPAN 
class=343101520-31072003>You could also generate SVG and have ImageMagick 
convert it for you.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=343101520-31072003><FONT 
face=Arial color=#0000ff>&nbsp;A bit of digging should turn up some open source 
software for making pie charts.</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN 
class=343101520-31072003></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN 
class=343101520-31072003></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN 
class=343101520-31072003>&nbsp;</SPAN>-----Original Message-----<BR><B>From:</B> 
magick-users-bounces@imagemagick.org 
[mailto:magick-users-bounces@imagemagick.org]<B>On Behalf Of </B>Karin 
Brede<BR><B>Sent:</B> Thursday, July 31, 2003 12:06 PM<BR><B>To:</B> 
magick-users@imagemagick.org<BR><B>Subject:</B> [magick-users] Drawing pie 
chart<BR><BR></DIV></FONT></FONT>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid"><BR><FONT 
  face="Courier New" size=2>Hello,</FONT> <BR><BR><FONT face="Courier New" 
  size=2>I've been trying to draw a pie chart filled with a pattern for some 
  while now using the command line tool.</FONT> <BR><FONT face="Courier New" 
  size=2>I can draw circles or squares with the prettiest patterns, I even get 
  some sort of arc drawn.</FONT> <BR><BR><FONT face="Courier New" size=2>But I'm 
  totally puzzled as to draw a 360 degrees pie chart with different 
  slices.</FONT> <BR><BR><FONT face="Courier New" size=2>Could anyone point me 
  to some documentation (other than the one on ImagesMagick Server)? Even better 
  would be a tutorial with examples.</FONT> <BR><BR><FONT face="Courier New" 
  size=2>Once I get the pie chart done with the command line tool, I will 
  hopefully be able to integrate the thing into a PHP-page using the 
  exec()-function or the like. Or is there a better way to do this with PHP? (I 
  already tried the gd-functions, but that didn't get me all the way through 
  either).</FONT> <BR><BR><FONT face="Courier New" size=2>Any hint will be 
  greatly appreciated,</FONT> <BR><FONT face="Courier New" size=2>Karin</FONT> 
  <BR><FONT face="Courier New" size=2><BR>-- <BR>I. A. Karin Brede, Web 
  Development<BR>uni-X Software AG &nbsp; &nbsp; &nbsp; Werbung &amp; Neue 
  Medien<BR>Alter Steinweg 5 &nbsp; &nbsp; &nbsp; &nbsp;48143 Münster<BR>Tel. 
  +49-251-9191-0 &nbsp; Fax +49-251-9191-199<BR>http://www.uni-X.com &nbsp; 
  &nbsp; brede@uni-X.com</FONT></BLOCKQUOTE></BODY></HTML>


_______________________________________________
Magick-users mailing list
Magick-users@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic