Rose chart Explode effect

[No canvas support]

This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.rose.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="350" height="350">
    [No canvas support]
</canvas>
This is the code that generates the chart:
<script>
    window.onload = function ()
    {
        var rose = new RGraph.Rose({
            id: 'cvs',
            data: [4,8,6,4,3,5,2],
            options: {
                textAccessible: true
            }
        }).explode()
          .on('beforedraw', function (obj)
          {
              RGraph.clear(obj.canvas, 'white');
          });
    };
</script>

Share on Facebook Share on Twitter

« Back