A Bar chart demonstrating the marginInnerLeft and marginInnerRight settings
This goes in the documents header:
<script src="RGraph.svg.common.core.js"></script>
<script src="RGraph.svg.bar.js"></script>
Put this where you want the chart to show up:
<div id="chart-container" style="600px; height: 250px; display: inline-block"></div>
This is the code that generates the chart:
<script>
data = [[6,5,3],[1,8,6],[4,5,5],[8,9,4],[3,2,1],[5,6,6],[4,3,5],[4,8,6]];
//data = [4,8,6,5,3,5,9,4];
bar = new RGraph.SVG.Bar({
id: 'chart-container',
data: data,
options: {
grouping: 'grouped',
xaxisLabels: ['Quentin','Bob','Neil','Olga','Charles','Chris','Luis','Pete'],
marginInnerLeft: 100,
marginInnerRight: 100,
marginInner: 10,
backgroundGridVlines: false,
backgroundGridBorder: false,
yaxis: false
}
}).grow({frames: 30});
</script>