<script src="RGraph.common.core.js"></script> <script src="RGraph.common.effects.js"></script> <script src="RGraph.common.key.js"></script> <script src="RGraph.bar.js"></script>Put this where you want the chart to show up:
<canvas id="cvs" width="600" height="250"> [No canvas support] </canvas>This is the code that generates the chart:
<script> new RGraph.Bar({ id: 'cvs', data: [[5,6],[7, 7],[6, 9],[8, 12],[12, 13],[15, 18],[45, 42],[55, 53],[36, 37],[25, 28],[20, 24],[15, 18]], options: { backgroundImage: '../images/bg.png', backgroundGrid: false, labels: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'], key: ['Sunshine in 2000', 'Sunshine in 2005'], keyPosition: 'gutter', keyPositionGutterBoxed: false, keyBackground: 'rgb(255,255,255)', colors: ['yellow', 'red'], shadow: true, shadowBlur: 15, shadowOffsetx: 0, shadowOffsety: 0, shadowColor: '#aaa', strokestyle: 'rgba(0,0,0,0)', gutterLeft: 55, gutterRight: 5, hmarginGrouped: 1, textAccessible: true } }).draw(); </script>