A Pie chart with the key in margin mode

[No canvas support]

This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.common.key.js"></script>
<script src="RGraph.common.dynamic.js"></script>
<script src="RGraph.drawing.rect.js"></script>
<script src="RGraph.pie.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="450" height="350">
    [No canvas support]
</canvas>
This is the code that generates the chart:
<script>
    new RGraph.Pie({
        id: 'cvs',
        data: [45,43,23,68,84,41],
        options: {
            title: 'A pie chart showing a margin key',
            titleSize: 20,
            titleItalic: true,
            titleY: 30,
            key: ['John','Fred','Lou','Pete','Kevin','Gary'],
            keyColors: ['red','#ccc','#0f0','#00f','pink','yellow'],
            keyInteractive: true,
            keyRounded: false,
            keyPosition: 'margin',
            keyPositionY: 315,
            keyLabelsBold: true,
            keyLabelsItalic: true,
            radius: 125,
            linewidth: 1
        }
    }).draw();
</script>