# A line chart with different linewidths

This goes in the documents header:

    <script src="RGraph.common.core.js"></script>
    <script src="RGraph.common.key.js"></script>
    <script src="RGraph.line.js"></script>

Put this where you want the chart to show up:

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

This is the code that generates the chart:

    <script>
        window.onload = function ()
        {
            var line = new RGraph.Line({
                id: 'cvs',
                data: [
                    [31,25,23,41,35,36,56,66,46,13,32,41],
                    [45,12,83,53,52,54,12,32,65,98,87,86]
                ],
                options: {
                    fillstyle: 'rgba(255,0,0,0.3)',
                    colors: ['gray', 'green'],
                    linewidth: [7, 3],
                    title: 'Multiple lines with differing line widths',
                    key: ['Thursday', 'Wednesday'],
                    keyBackground: 'rgba(255,255,255,0.8)',
                    keyRounded: true,
                    labels: ['Jobe', 'Violet', 'Olga', 'Kev', 'Bob', 'Lynn', 'Pete', 'Lou', 'John', 'Hope', 'Fred', 'John'],
                    shadowOffsetx: 0,
                    shadowOffsety: 0,
                    shadowBlur: 15,
                    shadowColor: ['gray','green'],
                    noaxes: true,
                    yaxispos: 'right',
                    gutterLeft: 5,
                    gutterRight: 35,
                    gutterTop: 35,
                    gutterBottom: 35,
                    textAccessible: true
                }
            }).draw();
        };
    </script>