This Pie chart is similar to the explode mousemove demo. But instead of using the mousemove event this uses the click event. As a result of using the click event instead of the mousemove event you will see far fewer peculiarities.
This goes in the documents header:<script src="RGraph.common.core.js"></script> <script src="RGraph.common.dynamic.js"></script> <script src="RGraph.common.effects.js"></script> <script src="RGraph.pie.js"></script>Put this where you want the chart to show up:
<canvas id="cvs" width="450" height="300"> [No canvas support] </canvas>This is the code that generates the chart: