This is an example of a 3D Pie chart effect used in conjunction with the
donut
variant
.
<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> 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'], labelsSticksLength: 15, labelsSticksLinewidth: 2, textAccessible: false, colorsStroke: 'transparent' } }).draw(); </script>