PHP Graphing: Pie Charts Coloured and Exploded Support

In the continuing series of dynamically drawing graphs with the PHP image functions, this week we revisit our pie graph and look at how to fill it with colour, and then how to give them an "exploded" look.  As in most things with programming, there is more than one way to skin a cat, so we'll also take a look an alternate method of drawing the wedges of our pie chart.

It'll look much like this:

$2.79
- OR -

Allan Kent

Allan KentAllan comes from Cape Town, South Africa. He has been implicated in writing for several WROX, glasshaus, Wiley and Apress publications, generally in the 'cool stuff that PHP can do' sections.

You can catch up with him at his website http://www.mediafrenzy.co.za.

See All Postings From Allan Kent >>