This is an example of a 3D Pie chart effect used in conjunction with the donut variant.
This goes in the documents header:<script src="RGraph.common.core.js"></script> <script src="RGraph.pie.js"></script>Put this where you want the chart to show up:
<canvas id="cvs" width="600" height="350" style="border: 1px solid #eee">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
var pie = new RGraph.Pie({
id: 'cvs',
data: [4,8,6,3,5,2,5],
options: {
shadow: true,
shadowOffsetx: 0,
shadowOffsety: 5,
shadowColor: '#aaa',
radius: 100,
variant: 'donut3d',
labels: ['Mavis','Kevin','Luis','June','Olga','Luis','Pete','Bridget'],
labelsSticks: true,
labelsSticksLength: 15,
labelsSticksUsecolors: true,
textAccessible: false
}
}).draw();
</script>