A Line chart which uses the obj.highlightDataset() API functions
Choose a dataset to highlight:
This goes in the documents header:
<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="750" height="300">[No canvas support]</canvas>
Choose a dataset to highlight:
<select id="dataset-picker" style="font-size: 24pt">
<option></option>
<option value="0">First</option>
<option value="1">Second</option>
<option value="2">Third</option>
</select>
<button onclick="if (combo.value) {highlight(combo.value)} else {RGraph.redraw();}" style="font-size: 24pt">Highlight</button>
This is the code that generates the chart - it should be placed AFTER the canvas tag(s):