An outlined red SVG Line chart

This goes in the documents header:
<script src="RGraph.svg.common.core.js"></script>
<script src="RGraph.svg.line.js"></script>
Put this where you want the chart to show up:
<div style="width: 750px; height: 300px" id="chart-container"></div>
This is the code that generates the chart:
<script>
    new RGraph.SVG.Line({
        id: 'chart-container',
        data: [10,15,13,16,15,16,13,14,18,16,13,175,-160,11,15,10,16,13,16,15,18,13,12],
        options: {
            gutterLeft: 50,
            yaxisMin: 'mirror',
            colors: ['white'],
            xaxis: false,
            yaxis: false,
            yaxisLabelsCount: 0,
            linewidth: 10,
            tickmarksStyle: 'filledendcircle',
            tickmarksSize: 15,
            backgroundColor: '#ddd',
            backgroundGrid: false,
            backgroundGridBorder: false,
            yaxisScale: false
        }
    }).trace();

    new RGraph.SVG.Line({
        id: 'chart-container',
        data: [10,15,13,16,15,16,13,14,18,16,13,175,-160,11,15,10,16,13,16,15,18,13,12],
        options: {
            gutterLeft: 50,
            colors: ['red'],
            xaxis: false,
            yaxis: false,
            yaxisMin: 'mirror',
            yaxisLabelsCount: 0,
            yaxisScale: false,
            linewidth: 7,
            tickmarksStyle: 'filledendcircle',
            tickmarksSize: 13,
            backgroundGrid: false,
            backgroundGridBorder: false,
            yaxisMin: 'mirror'
        }
    }).trace();
</script>

« Back