Here's a straight-forward Gauge chart that shows how you can use a non-zero
minimum value. It also uses the colorsRanges
property to add the red, yellow,
green, yellow and red bars around the Gauge. It's also adjustable by way of a
small snippet of custom code (that's shown below in the code). By doing this
instead of using the built-in adjusting, the movement of the needle can be animated
using the grow()
effect.
<script src="RGraph.common.core.js"></script> <script src="RGraph.gauge.js"></script>Put this where you want the chart to show up:
<canvas id="cvs" width="350" height="350"> [No canvas support] </canvas>This is the code that generates the chart: