RGraph: Traditional radar chart documentation

A traditional radar chart. Because of late breaking changes, this one doesn't work in Opera 9, but does work fine in Opera 10

The example file is here.

<script>
    window.onload = function ()
    {
        var data = [3, 3, 41, 37, 16];
    
        var tradar = new RGraph.Tradar('myTradar', data);
        tradar.Set('chart.background.circles', true);
        tradar.Set('chart.color', 'rgba(255,0,0,0.5)');
        tradar.Set('chart.circle', 20);
        tradar.Set('chart.circle.fill', 'rgba(200,255,200,0.5)');
        tradar.Set('chart.labels', ['Safari (3%)', 'Other (3%)', 'MSIE 7 (41%)', 'MSIE 6 (37%)', 'Firefox (16%)']);
        tradar.Set('chart.key', ['Market share', 'A made up figure']);
        tradar.Draw();
    }
</script>

Available properties

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

chart.color The color of the radar chart.
Default: rgba(255,0,0,0.5)
chart.circle What value to draw a circle at. Defaults to zero (off). You could use this to represent a limit of some sort.
Default: 0
chart.circle.fill What colour to fill the circle with.
Default: Not set
chart.labels The labels to use for the chart.
Default: An empty array
chart.background.circles Whether to draw the grey background circles.
Default: true
chart.linewidth The width of the outline.
Default: 1
chart.gutter The gutter that the chart uses. This is effectively the margin.
Default: 25
chart.text.size The height of the text.
Default: 12
chart.title The title, if any, of the chart.
Default: Not set
chart.key.shadow Whether a small drop shadow is applied to the key.
Default: false
chart.key An array of two descriptions. The actual radar, and the indicated limit circle.
Default: Not set
chart.key.background The background colour of the key. If the key covers too much, you can use a semi-transparent colour - eg. rgba(255,255,255,0.7).
Default: #fff
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:

myTradar.Set('color', 'rgba(255,0,0,0.5)');