A basic Vertical Progress bar
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.vprogress.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="100" height="400">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
new RGraph.VProgress({
id: 'cvs',
min: 0,
max: 100,
value: [10,10,10,10],
options: {
margin: 7,
bevelled: true,
tooltips: ['An example tooltip!','Foo','bar','bar'],
colors: ['red','yellow','pink','white'],
key: ['Alf','Berty','Carlos','Dave'],
keyPositionX: 125,
marginRight: 125,
textAccessible: false
}
}).exec(function (obj)
{
var background = RGraph.linearGradient(
obj,
25,0,obj.canvas.width - 25,0,
'#ccc','white', 'white', 'white'
);
obj.set({
colorsBackground: background
});
}).grow();
</script>