A Bar chart demonstrating the axis options


[No canvas support]

This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.bar.js"></script>
Put this where you want the chart to show up:
<button onclick="obj = getObject(); obj.set('xaxisPosition', obj.get('xaxisPosition') == 'bottom' ? 'center' : 'bottom'); RGraph.redraw();">Toggle the X axis position</button>
<button onclick="obj = getObject(); obj.set('yaxisPosition', obj.get('yaxisPosition') == 'left' ? 'right' : 'left'); RGraph.redraw();">Toggle the Y axis position</button>
<button onclick="obj = getObject(); obj.set('yaxisLabels', obj.get('yaxisLabels') ? false : true); RGraph.redraw();">Toggle the Y axis labels</button>
<button onclick="obj = getObject(); obj.set('yaxisLabelsSpecific', obj.get('yaxisLabelsSpecific') ? false : ['High','Medium','Low']); RGraph.redraw();">Toggle specific Y axis labels</button>
<button onclick="obj = getObject(); obj.set('yaxisScaleMin', obj.get('yaxisScaleMin') ? 0 : 50); RGraph.redraw();">Toggle Y min (50) setting</button>
<button onclick="obj = getObject(); obj.set('xaxisLabels', obj.get('xaxisLabels') ? null : ['Q1','Q2','Q3','Q4']); RGraph.redraw();">Toggle X axis labels</button>
<button onclick="obj = getObject(); obj.set('xaxis', obj.get('xaxis') ? true : false); RGraph.redraw();">Toggle X axis</button>

<canvas id="cvs" width="600" height="400">
    [No canvas support]
</canvas>
This is the code that generates the chart: