A simple black and white Line chart using the trace2()
effect. The defaults have been changed
though so there is some configuration required.
<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"> [No canvas support] </canvas>This is the code that generates the chart:
<script> new RGraph.Line({ id: 'cvs', data: [4,5,5,6,6,7,4,5,6,8,8,9,15,16,24,25, null, null], options: { xaxisTickmarksCount: 0, yaxisTickmarksCount: 0, backgroundGrid: false, colors: ['black'], linewidth: 5, marginInner: 5, yaxisLabels: false, shadow: false, tickmarksStyle: null } }).trace2(); </script>