A stacked horizontal progress bar
This goes in the documents header:
<script src="RGraph.svg.common.core.js"></script>
<script src="RGraph.svg.hbar.js"></script>
Put this where you want the chart to show up:
<div style="padding: 15px">
<div style="width: 600px; height: 125px" id="chart-container"></div>
</div>
This is the code that generates the chart:
<script>
new RGraph.SVG.HBar({
id: 'chart-container',
data: [[36,15,49]],
options: {
xaxisMax: 100,
xaxisUnitsPost: '%',
yaxis: false,
yaxisLabels: ['Mondays usage'],
xaxis: false,
backgroundGrid: false,
title: 'A grouped HBar chart',
vmargin: 10,
grouping: 'stacked',
colors: ['Gradient(white:red)','Gradient(white:green)','Gradient(white:blue)']
}
}).draw();
</script>
« Back