# A filled green Line

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="600" 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: [
                    [25,24,21,26,35,33,29,32,18,20,15,13],
                    [20,30,50,40,30,50,40,30,51,40,10,20]
                ],
                options: {
                    labels: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
                    colors: ['#666','#090'],
                    filled: true,
                    fillstyle: [
                        'Gradient(rgba(48,48,48,0.75):rgba(100,100,100,0.75)',
                        'Gradient(rgba(0,100,0,0.75):rgba(85,255,118,0.9)'
                    ],
                    linewidth: 3,
                    tickmarks: null,
                    shadow: null,
                    spline: true,
                    textAccessible: true
                }
            }).draw();
        };
    </script>