A 3D Horizontal Bar chart with a right Y axis
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.common.dynamic.js"></script>
<script src="RGraph.common.tooltips.js"></script>
<script src="RGraph.hbar.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="400" height="550">[No canvas support]</canvas>
This is the code that generates the chart:
<script>
new RGraph.HBar({
id: 'cvs',
data: [[1,null],[1,2],[5,4],[7,8],[4,3],[8,8],[4,6]],
options: {
colors: [
'Gradient(#fcc:red:red)',
'Gradient(#cfc:#0f0:#0f0)'
],
grouping: 'grouped',
yaxisPosition: 'right',
variant: '3d',
marginLeft: 5,
marginRight: 100,
shadow: true,
shadowOffsety: 3,
shadowOffsetx: -1,
shadowBlur: 10,
shadowColor: '#ddd',
marginInner: 10,
axes: false,
yaxisLabels: ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday']
}
}).draw();
</script>