By using the margin settings to shift the charts left or right, two Bipolar charts can be made to give an inverted appearance.
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="250"> [No canvas support] </canvas>This is the code that generates the chart:
<script> new RGraph.Bipolar({ id: 'cvs', left: [4,6,3,5,8], right: [4,6,5,9,2], options: { colors: ['#7CB5EC'], yaxisLabels: ['John','Luke','Pete','Jane','Fred'], axes: false, marginLeft: -225, marginRight: 325, marginCenterAutosize: false, marginCenter: 75, textAccessibleOverflow: 'hidden' } }).grow(); new RGraph.Bipolar({ id: 'cvs', left: [4,6,3,5,8], right: [4,6,5,9,2], options: { yaxisLabels: ['John','Luke','Pete','Jane','Fred'], axes: false, marginLeft: 325, marginRight: -230, textAccessibleOverflow: 'hidden', colors: ['#7CB5EC'] } }).grow(); </script>