An animated Radar chart

[No canvas support]

This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.common.dynamic.js"></script>
<script src="RGraph.common.tooltips.js"></script>
<script src="RGraph.common.effects.js"></script>
<script src="RGraph.radar.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="450" height="400">
    [No canvas support]
This is the code that generates the chart:
    window.onload = function ()
        var labels = ['Mal', 'Barry', 'Gary','Dave','Paul'];

        new RGraph.Radar({
            id: 'cvs',
            data: [
            options: {
                labels: labels,
                tooltips: RGraph.arrayLinearize(labels, labels), // Effectively adds the two arrays together
                clearto: 'white',
                backgroundCirclesPoly: true,
                backgroundCirclesSpacing: 30,
                colors: ['rgba(255,0,0,0.25)','rgba(255,255,0,0.25)'],
                axesColor: 'transparent',
                highlights: true,
                strokestyle: ['red','black'],
                textAccessible: true,
                clearto: 'white'

Share on Facebook Share on Twitter

« Back