This is a grouped Bar chart that has an offset X axis and also uses the grow()
effect and a key so that you can differentiate the different colored bars.
<script src="RGraph.svg.common.core.js"></script> <script src="RGraph.svg.common.key.js"></script> <script src="RGraph.svg.bar.js"></script>Put this where you want the chart to show up:
<div style="padding: 15px"> <div style="width: 750px; height: 300px" id="chart-container"></div> </div>This is the code that generates the chart:
<script> new RGraph.SVG.Bar({ id: 'chart-container', data: [ [1,-2], [4,5], [4,2], [6,9], [4,3], [4,-3], [-4,8] ], options: { colors: ['#7CB5EC','#434348'], xaxisLabels: ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'], xaxis: 'rgba(0,0,0,0.5)', yaxis: false, grouping: 'grouped', marginInner: 20, marginInnerGrouped: 5, yaxisScaleMax: 20, yaxisScaleMin: -5, title: 'A grouped Bar chart', key: ['Richard', 'Barry'], marginTop: 50 } }).grow(); </script>