This is a simple script for building simple SVG pie charts with Javascript. It'll probably be used for a future version of Dockr.co.uk (a Boris Bike finding app). For Dockr I only need one slice of pie for each chart, so that's all this script supports. Currently Dockr is using the Google graphs API for it's pie charts. This works well but I wanted a solution that would be faster on low-bandwidth mobile devices - using dynamically generated SVG pie charts means means we don't need to download anything but the raw data.
Best in Webkit - doesn't work in Firefox and is painfully slow in IE9.