A Horizontal Bar chart example
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="400">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
new RGraph.HBar({
id: 'cvs',
data: [0.1,0.2,0.3,3.2,0.2,0.5,0.5,0.2,0.4,0.8,0,0.1],
options: {
backgroundGrid: false,
xaxisScaleMax: 3.5,
xaxisScaleDecimals: 1,
colors: ['#164366','#164366','#164366','#FDB515','#164366'],
colorsSequential: true,
yaxisLabels: ['Norway','Australia','Netherlands','United States','New Zealand','Canada','Ireland','Germany','Sweden','Switzerland','Japan','England and Wales'],
labelsAbove: true,
labelsAboveDecimals: 1,
xaxis: false,
marginLeft: 150,
xaxisLabels: false
}
}).wave();
</script>