A demo of a clipped Line and Bar chart

This is a demo of first drawing a spline Line chart and then using the resulting coordinates to specify a clipping area to then draw the Bar chart. The Bar charts background grid and axes are turned off so as not to appear over the Line chart. The clipping area height is slightly smaller than the coordinates (by half the linewidth) so the Bar chart does not not appear over the parts of the Line where the bars are.

[No canvas support]

This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.bar.js"></script>
<script src="RGraph.line.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="600" height="300">
    [No canvas support]
</canvas>
This is the code that generates the chart: