A Bar chart showing the modaldialog event

This Bar chart uses the ModalDialog which in turn uses the modaldialog event which is added using DOM1 style methods. Click on the canvas and a ModalDialog will be shown that uses the DOM1 style modaldialog event to show an alert().

[No canvas support]

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