A curvy Line chart with multiple lines
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.common.dynamic.js"></script>
<script src="RGraph.common.tooltips.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,1,6,3,5,2], [7,7,8,6,2,1,1] ],
options: {
spline: true,
linewidth: 3,
hmargin: 5,
xaxisLabels: ['Mon','Tue','Wed','Thu','Fri','Sat','Sun'],
tooltips: [
'Mon','Tue','Wed','Thu','Fri','Sat','Sun',
'Mon','Tue','Wed','Thu','Fri','Sat','Sun'
],
highlightStyle: 'halo',
tickmarksStyle: 'circle'
}
}).trace2();
</script>