A basic Pie charts example

[No canvas support]

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="400" height="300">
    [No canvas support]
This is the code that generates the chart:
    window.onload = function ()
        var pie = new RGraph.Pie({
            id: 'cvs',
            data: [84,76,79,84,86],
            options: {
                textAccessible: true,
                exploded: [15],
                labels: ['Jack','Hoolio','Kevin','Peter','Luis']

Share on Facebook Share on Twitter