# An inverted offset X axis Line chart

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="650" height="400">[No canvas support]</canvas>

This is the code that generates the chart:

    <script>
        new RGraph.Line({
            id: 'cvs',
            data: [-10,-24,51,65,68,99],
            options: {
                hmargin: 0,
                gutterLeft: 85,
                gutterTop: 45,
                outofbounds: true,
                linewidth: 3,
                colors: ['red'],
                ymax: 150,
                scaleInvert: true,
                tickmarks: null,
                ymin: -50,
                backgroundGridAutofitNumhlines: 4,
                ylabelsCount: 4,
                numyticks: 4,
                unitsPost: 'k  ',
                hmargin: 15,
                spline: true,
                textAccessible: true
            }
        }).draw();
    </script>