# An RScatter chart with a joining line

This goes in the documents header:

    <script src="RGraph.common.core.js"></script>
    <script src="RGraph.common.dynamic.js"></script>
    <script src="RGraph.common.tooltips.js"></script>
    <script src="RGraph.rscatter.js"></script>

Put this where you want the chart to show up:

    <canvas id="cvs" width="500" height="500">
        [No canvas support]
    </canvas>

This is the code that generates the chart:

    <script>
        window.onload = function ()
        {
            var data = [];

            for (var i=0; i<360; i+=2) {
                data.push([i * 2, i, 'red']);
            }

            var rscatter = new RGraph.Rscatter({
                id: 'cvs',
                data: [data],
                options: {
                    textAccessible: true
                }
            }).draw();
        };
    </script>