This is a demo of a Horizontal Bar chart that has been configured to look like a Horizontal Progress Bar. Because the HBar chart supports stacked variants - so does the "Horizontal Progress Bar" This chart doesn't have tooltips but you can enable them if you wish.
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>