Bookmark with delicious Follow _RGraph on Twitter

RGraph: Javascript charts library - Adjusting your charts interactively - Rose chart

[No canvas support]

The Rose chart can be adjusted by clicking and dragging the segments to the desired size. When the onadjustend event fires you can get the following segment information from RGraph.Registry.Get('chart.adjusting.rose.myrose') (where myrose is the canvas ID):


<script>
    window.onload = function (e)
    {
        var rose = new RGraph.Rose('cvs',[4,3,5,6,2,1,4]);
        rose.Set('chart.colors.alpha', 0.5);
        rose.Set('chart.adjustable', true);
        rose.Set('chart.labels', ['Olga','Kev','Bob','Charlie','Pete','John','Fred']);
        rose.Draw();
        
        RGraph.AddCustomEventListener(rose, 'onadjustend', function (obj) {p(RGraph.Registry.Get('chart.adjusting.rose.cvs'));});
    }
</script>