A Line chart with errorbars

[No canvas support]

This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.line.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="700" height="250">
    [No canvas support]
</canvas>
This is the code that generates the chart:
<script>
    var line = new RGraph.Line({
        id: 'cvs',
        data: [12,18,10,8,5,4,3,2,14,5,6,9],
        options: {
            min: 5,
            errorbars: [1, [1,5],[5],3,3,3,3,3,3,3,3,3,3],
            //errorbarsLinewidth: 5,
            //errorbarsColor: 'red',
            //errorbarsCapped: true,
            //errorbarsCappedWidth: 100,
            hmargin: 15,
            tickmarks: 'circle',
            scaleZerostart: true,
            noxaxis: true,
            textAccessible: true
        }                
    }).draw();
</script>

« Back