A basic SVG Pie chart
This goes in the documents header:
<script src="RGraph.svg.common.core.js"></script>
<script src="RGraph.svg.pie.js"></script>
Put this where you want the chart to show up:
<div style="width: 650px; height: 350px" id="chart-container"></div>
This is the code that generates the chart:
<script>
new RGraph.SVG.Pie({
id: 'chart-container',
data: [1,1,1,1,1,1,1,1],
options: {
tooltipsEvent: 'mousemove',
highlightStyle: 'outline',
labelsSticksHlength: 50,
tooltips: ['Alf','Berty','Craig','Dean','Elgar','Fliss','Lucy','Paul'],
key: ['Bob','Rik','Alf','Hal','Kev','Tom','Mat','Pam']
}
}).draw();
</script>
« Back