A basic horizontal bar chart
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="450">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
new RGraph.HBar({
id: 'cvs',
data: [5,8,6,4,3,2,1,6,8],
options: {
labels: ['Venus','Felicity Jones-Arthur','Cynthia','Frederick','Hoolio','Peter','Jennifer','Richard','Joathan'],
gutterLeftAutosize: true,
scaleZerostart: true,
textAccessible: true
}
}).draw();
</script>
« Back