An RScatter chart with a joining line
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.rscatter.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="500" height="500">
[No canvas support]
</canvas>
This is the code that generates the chart:
<script>
data = [
[15,80],
[55,65],
[65,45],
[84,96],
[125,85],
[175,78]
];
new RGraph.Rscatter({
id: 'cvs',
data: [data],
options: {
line: true,
lineColors: ['red'],
scaleUnitsPost: 'kj'
}
}).draw();
</script>