2D/3D Pie/Donut Chart

Just something I’ve been working on for the past few days. I might make this class public someday…who knows! It can build anything from 2D pie charts to 3D donut charts.

SWF: http://lewi-p.co.uk/examples/pie/PieChart.swf
XML: http://lewi-p.co.uk/examples/pie/chart.xml

You can set each slice’s label, value, colour and whether or not they should show automatically on load.

**Public Methods
**draw($xml:String); // draws chart
resize ($args:Object); // passes new parameters i.e. xml, height, width etc
getTitle(); // returns chart title
getTotal(); // returns total value / votes of chart
getSliceValue($id:Number); // returns slice value / votes
getSlicePercent($id:Number); // returns slice percentage
getSliceColour($id:Number); // returns colour of slice

lewi-p