<div>Hello all... I´m using this Steve Lime pie chart... It works great! But I´m wondering if its posible to do a <font size="2">bar <b>graph</b> in that way...</font></div>
<div><font size="2"></font> </div>
<div><font size="2">Thanks</font></div>
<div><font size="2"></font> </div>
<div><font size="2">Paul</font></div>
<div> </div>
<div> </div>
<div>-----------------</div>
<div>Search in the archive for pie chart. There was a nice example by Steve Lime end of 2004. See below.<br><br>Best regards,<br>Bart<br><br>Forwarded message:<br><br>Hi all: I was updating mapgd.c today to make use of GD functions that
<br>appeared in GD 2.0.x. I made a small modification to the marker drawing<br>code for ELLIPSE symbols, specifically circles. Now if you specify a<br>style angle it is interpreted as a "pie slice". You can do things like:
<br><br> <a href="http://maps.dnr.state.mn.us/testing/charts/test.gif"><font color="#000000">http://maps.dnr.state.mn.us/testing/charts/test.gif</font></a> <br> <a href="http://maps.dnr.state.mn.us/testing/charts/test.map">
<font color="#000000">http://maps.dnr.state.mn.us/testing/charts/test.map</font></a> <br><br>Since you can load an angle from an attribute (via ANGLEITEM) you can<br>build simple pie charts pretty easy. Only problem is it's hard to do
<br>more than 2 colors, and the origin is always 0.<br><br>Assuming folks are ok with the modification (it's only 5 lines of code)<br>what about adding a STARTANGLE parameter? We could probably do some auto<br>computation of starting angles between styles so that multiple element
<br>charts would be possible/easy to construct.<br><br>Steve<br><br>Bart van den Eijnden<br>Syncera IT Solutions<br>Postbus 270<br>2600 AG DELFT<br><br> </div>