<script src="RGraph.common.core.js"></script> <script src="RGraph.common.dynamic.js"></script> <script src="RGraph.common.tooltips.js"></script> <script src="RGraph.pie.js"></script> <style> .RGraph_tooltip { font-size: 16pt !important; font-weight: bold; text-align: center; padding: 15px; } </style>Put this where you want the chart to show up:
<canvas id="cvs" width="550" height="350"> [No canvas support] </canvas>This is the code that generates the chart:
<script> window.onload = function () { var pie = new RGraph.Pie({ id: 'cvs', data: [4,8,4,6,5,3,2,5], options: { gutterLeft: 50, gutterRight: 50, linewidth: 0, strokestyle: 'rgba(0,0,0,0)', tooltips: ['Alvin','Pete','Hoolio','Jack','Kev','Luis','Lou','Jesse'], labels: ['Alvin','Pete','Hoolio','Jack','Kev','Luis','Lou','Jesse'], colors: ['red','yellow','blue','cyan','green','pink','white','#aaa'], variant: 'pie3d', radius: 100, labelsSticksList: true, labelsSticksColors: [,'#cc0',,,'#0f0',,'black'], radius: 80, shadowOffsety: 5, shadowColor: '#aaa', exploded: [,,20], textAccessible: false } }).draw(); }; </script>