This goes in the documents header:
<script src="RGraph.common.core.js"></script> <script src="RGraph.drawing.background.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"> [No canvas support] </canvas>This is the code that generates the chart:
<script> new RGraph.Drawing.Background({ id: 'cvs', options: { marginLeft: 55, marginRight: 35, marginTop: 35, marginBottom: 35, backgroundGridVlinesCount:48, backgroundGridHlinesCount: 20, backgroundGridColor: '#eee' } }).draw(); line = new RGraph.Line({ id: 'cvs', data: [5,4,15,-5,8,5,3], options: { xaxisLabels: ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'], marginLeft: 55, marginRight: 35, marginBottom: 35, marginTop: 35, title: 'A line chart showing the outofboundsClip option', titleBold: true, titleSize: 16, backgroundGridColor: '#aaa', backgroundGridDashed: true, outofbounds: true, outofboundsClip: true, yaxisScaleMax: 10, xaxis: false } }).draw(); </script>