<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: { textAccessible: true, margin: 7, bevel: true, tooltips: ['An example tooltip!','Foo','bar'], colors: ['red','yellow','pink','white'] } }).exec(function (obj) { var background = RGraph.linearGradient( obj, 25,0,obj.canvas.width - 25,0, '#ccc','white', 'white', 'white' ); obj.set({ backgroundColor: background }); }).grow(); </script>