A Scatter chart demonstrating the crosshairs snap option

This Scatter chart demonstrates how you can extract the Scatter chart's dataset and index from the variables that are set on the canvas tag by RGraph.

[No canvas support]

Dataset:


Point:

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