This example Gauge chart doesn't use the built-in adjusting but uses a custom
click
event listener (which you can see below) in order to make the
adjusting animated. It also uses a custom draw
event to draw the centerpin.
<script src="RGraph.common.core.js"></script> <script src="RGraph.common.dynamic.js"></script> <script src="RGraph.common.effects.js"></script> <script src="RGraph.gauge.js"></script>Put this where you want the chart to show up:
<canvas id="cvs" width="250" height="250" style="background-color: black; border-radius: 125px; box-shadow: 0 0 25px gray; border: 5px solid #ddd"> [No canvas support] </canvas>This is the code that generates the chart: