<script src="RGraph.common.core.js"></script> <script src="RGraph.common.csv.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> window.onload = function () { RGraph.CSV('id:klkl', function (csv) //RGraph.CSV('/sample.csv', function (csv) { /** * Fetch the first row of the CSV file, starting at the second column */ var data = csv.getRow(0, 1); /** * Fetch the first column which become the labels */ var labels = csv.getCol(0) labels.push('Fred') var bar = new RGraph.Bar({ id: 'cvs', data: data, options: { labels: labels, labelsAboveSpecific: ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'], labelsAboveSize: 8, noxaxis: true, shadowOffsetx: 2, shadowOffsety: 2, shadowBlur: 5, hmargin: 15, backgroundGridAutofitNumvlines: 7, colors: ['Gradient(#DDF:#01B4FF)'], linewidth: 2, strokestyle: 'white', textAccessible: true } }).draw(); }); }; </script>