Draggable Piechart JS class
For a recent project I made a draggable pie chart. I thought this might be useful, so I have made it open source for others to use. There are many off the shelf libraries for doing charts, but only the extremely heavyweight ones are customizable to any extent, and rely on wading through a bunch of documentation. This one comes with a self explanatory callback to style the chart, that you can copy and paste and edit.
Here is the default example:
The default behaviour gives each slice a minimum width. You can change colours and set it to allow collapsing pies:
However you need to provide a way to un-collapse the segments, as below. You can also override the drawing routines, providing your own format arguments for each segment, and create a UI for it to interact with:
You can find the code here: https://github.com/jamesalvarez/draggable-piechart Please give me a shout if you found it useful - it's always nice to hear!