A Horizontal Bar chart with a right Y axis
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.hbar.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="600" height="500">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
new RGraph.HBar({
id: 'cvs',
data: [56,45,57,58,51,48,47,46,61],
options: {
yaxisLabels: ['Venus','Felicity','Cynthia','Frederick','Hoolio','Peter','Jennifer','Richard','Jonathan'],
yaxisPosition: 'right',
marginLeft: 5,
marginRight: 75,
xaxisScaleMax: 100,
backgroundGridHlinesCount: 9
}
}).draw();
</script>