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: