A range Bar chart
This goes in the documents header:
<script src="RGraph.svg.common.core.js"></script>
<script src="RGraph.svg.bar.js"></script>
Put this where you want the chart to show up:
<div id="chart-container" style="600px; height: 250px; display: inline-block"></div>
This is the code that generates the chart:
<script>
data = [[5,16],[8,12],[9,16],[8,12],[9,15],[5,18],[4,12],[3,16]];
var bar = new RGraph.SVG.Bar({
id: 'chart-container',
data: data,
options: {
colors: ['transparent', 'gradient(red:#fdd)'],
grouping: 'stacked',
yaxis: false,
backgroundColor: 'Gradient(#ddd:white)',
backgroundGrid: false
}
}).draw();
</script>