A basic VProgress chart
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.common.effects.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>
window.onload = function ()
{
var vprogress = new RGraph.VProgress({
id: 'cvs',
min: 0,
max: 100,
value: '89',
options: {
gutterRight:35,
textSize: 12,
tickmarks: 100,
numticks: 20,
margin: 5,
textAccessible: true
}
}).grow();
vprogress.canvas.onclick = function (e)
{
var value = vprogress.getValue(e);
vprogress.value = value;
vprogress.grow();
}
};
</script>
« Back