# Line chart with null values

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>
        new RGraph.Line({
            id: 'cvs',
            data: [1059990.29, 90000.97,508116.23, 54790.12, null,null,null],
            options: {
                gutterLeft: 75,
                backgroundGridAutofitNumvlines: 6,
                tickmarks: 'filledcircle',
                ticksize: 5,
                numxticks: 6,
                labels: ['John','Fred','Lucy','John','Luis','Pete','Kevin'],
                colors: ['#c00', 'pink'],
                linewidth: 2,
                shadow: false,
                scaleZerostart: true
            }
        }).draw();
    </script>

« Back