An SVG Line chart that used to be a front page demo

If you like RGraph please share it:

This goes in the documents header:
<script src="../libraries/RGraph.svg.common.core.js" ></script>
<script src="../libraries/RGraph.svg.line.js" ></script>
<div style="width: 450px; height: 250px" id="chart-container"></div>
This is the code that generates the chart:
    var line = new RGraph.SVG.Line({
        id: 'chart-container',
        data: [
        options: {
            xaxisLabels: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
            yaxisUnitsPost: '%',
            xaxisTextColor: '#333',
            yaxisTextColor: '#333',
            gutterLeft:   40,
            gutterTop:    35,
            gutterRight:  15,
            gutterBottom: 50,
            colors: ['red','black'],
            linewidth: 7,
            shadow: true,
            shadowBlur: 3,
            shadowOpacity: 0.25,
            spline: true

« Back