# A grouped Bipolar chart

This goes in the documents header:

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

Put this where you want the chart to show up:

    <canvas id="cvs" width="600" height="450">
        [No canvas support]
    </canvas>

This is the code that generates the chart:

    <script>
        bip = new RGraph.Bipolar({
            id: 'cvs',
            left:  [[1,2,3],[4,5,6],[7,8,9]],
            right: [[1,2,3],[4,5,6],[7,8,9]],
            options: {
                margin: 30,
                labels: ['Alf','Barry','Charlie'],
                colors: [
                    'Gradient(red:red:white:red:red)',
                    'Gradient(green:green:white:green:green)',
                    'Gradient(blue:blue:white:blue:blue)'
                ],
                tooltips: [
                    '1','2','3',
                    '1','2','3',
                    '1','2','3',
                    '1','2','3',
                    '1','2','3',
                    '1','2','3'
                ],
                strokestyle: 'transparent',
                noaxes: true,
                grouping: 'grouped' // Default
            }
        }).grow();
    </script>