<script src="RGraph.common.core.js"></script> <script src="RGraph.line.js"></script>Put this where you want the chart to show up:
<canvas id="cvs" width="600" height="250" style="border-radius: 5px; box-shadow: 3px 3px 3px #ccc"> [No canvas support] </canvas>This is the code that generates the chart:
<script> window.onload = function () { var line = new RGraph.Line({ id: 'cvs', data: [ [7.0,6.9,9.5,14.5,18.2,21.5,25.2,26.5,23.3,18.3,13.9,9.6], [0.2,0.8,5.7,11.3,17.0,22.0,24.8,24.1,20.1,14.1,8.6, 2.5] ], options: { labels: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'], shadow: false, noxaxis: true, noyaxis: true, colors: ['#0f0','#76D0FF'], tickmarks: function (obj, data, value, index, x, y, color, prevX, prevY) { RGraph.path2(obj.context, ['b','lw', 2,'a',x, y, 4, 0, RGraph.TWOPI, false, 'f', null, , 's', 'black']); }, linewidth: 3, textColor: '#eee', textAccessible: true } }).on('beforedraw', function (obj) { RGraph.clear(obj.canvas, 'black'); }).trace2({frames: 15}) }; </script>