jQuery.wijmo.wijlineargauge Namespace > options type : ranges Field |
The ranges option, inherited from the jquery.wijmo.wijgauge.js base class, is an array of objects containing all of the options used to draw range bars to highlight where values fall within the gauge.
Type: Array
Default: []
Javascript (Usage) | |
---|---|
var value; // Type: array value = jQuery.wijmo.wijlineargauge.options.ranges; |
Javascript (Specification) | |
---|---|
|
<script type="text/javascript"> $(document).ready(function () { $("#lineargauge1").wijlineargauge({ value: 31, ranges: [{ startWidth: .2, endWidth: .4, startValue: 70, endValue: 100, startDistance: 0.8, endDistance: 0.8, style: { fill: "green", opacity: .5, stroke: "blue" } }] }); }); </script>
For example, you can create a red range, a yellow range, and a green range. Each range is drawn in the form of a bar. You can control every aspect of each range with the settings detailed below.
Options available for each range include: