A stacked horizontal bar chart
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.common.key.js"></script>
<script src="RGraph.hbar.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="600" height="300">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
new RGraph.HBar({
id: 'cvs',
data: [[8,6,7], [4,8,8],[4,9,16],[6,5,7],[3,7,16]],
options: {
grouping: 'stacked',
hmargin: 20,
yaxisLabels: ['Charlie','Jake','Luis','Jack','Bernie'],
key: ['Monday','Tuesday','Wednesday'],
keyPosition: 'margin',
keyColors: ['#7CB5EC','#434348','#90ED7D'],
keyTextSize: 16,
colors: ['#7CB5EC','#434348','#90ED7D'],
xaxis: false,
axesColor: '#999',
textSize: 20,
marginTop: 30,
marginBottom: 20,
marginLeft: 95,
marginRight: 25
}
}).grow();
</script>