A Horizontal Progress bar with tooltips
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.hprogress.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="600" height="100">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
new RGraph.HProgress({
id: 'cvs',
min: 0,
max: 100,
value: [10,10,10,10],
options: {
marginInner: 7,
tooltips: ['Kevin','Lucy','Jeff','Olga'],
colors: ['red','yellow','pink','white']
}
}).grow();
RGraph.tooltips.style.backgroundColor = '#eee';
RGraph.tooltips.style.fontSize = '16pt';
</script>