RGraph: Radar chart documentation

The example file is here.

<script>
    window.onload = function ()
    {
        var data = [41,37,16,3,3];
    
        var radar = new RGraph.Radar('myRadar', data);
        radar.Set('chart.labels', ['MSIE 7 (41%)',
                                   'MSIE 6 (37%)',
                                   'Firefox (16%)',
                                   'Safari (3%)',
                                   'Other (3%)']);
        radar.Draw();
    }
</script>

Available properties

You can use these properties to control how the Radar chart apears.

chart.colors An array of colors to be used by the chart.
Default: ['rgb(255,0,0)', 'rgb(0,255,255)', 'rgb(0,255,0)', 'rgb(127,127,127)', 'rgb(0,0,255)', 'rgb(255,128,255)']
chart.labels An array of labels for the radar chart.
Default: An empty array
chart.text.style The text style.
Default: #000
chart.gutter The gutter used on the chart
Default: 25
chart.title The title of the chart.
Default: none
chart.text.size The size of the text.
Default: 12
chart.key.shadow Whether a small drop shadow is applied to the key.
Default: false
chart.tooltips An array of tooltips. You can use HTML if you so wish.
Default: [] (An empty array)
chart.tooltip.effect The tooltip effect used. Can be either fade or expand.
Default: fade
chart.contextmenu An array of context menu items. More information on context menus is here.
Default: [] (An empty array)
chart.title.vpos This allows you to completely override the vertical positioning of the title. It should be a number between 0 and 1, and is multiplied with the gutter and then used as the vertical position. It can be useful if you need to have a large gutter.
Default: null
chart.annotatable Whether annotations are enabled for the chart (ie you can draw on the chart interactively.
Default: false
chart.annotate.color If you do not allow the use of the palette, then this will be the only colour allowed for annotations.
Default: black
chart.title.color The color of the title.
Default: black

You can set these properties by using the Set() method. Eg:

myRadar.Set('name', 'value');