# A stacked SVG Bipolar chart

This goes in the documents header:

    <script src="RGraph.svg.common.core.js"></script>
    <script src="RGraph.svg.bipolar.js"></script>

Put this where you want the chart to show up:

    <div style="padding: 15px">
        <div style="width: 600px; height: 500px" id="chart-container"></div>
    </div>

This is the code that generates the chart:

    <script>
        new RGraph.SVG.Bipolar({
            id: 'cc',
            left: [[4,3,5],[8,6,5],[4,8,8],[4,4,4],[6,5,8]],
            right: [[9,15,8],[4,3,8],[26,5,15],[3,16,24],[12,16,18]],
            options: {
                grouping: 'stacked',
                vmargin: 25,
                title: 'A stacked Bipolar example chart',
                titleSubtitle: 'A subtitle to go along with the title',
                gutterTop: 50
            }
        }).draw();
    </script>

« Back