Wijmo UI for the Web
cap Field

Type: wijmo.gauge.radialgauge_cap

Sets the size, color, and other properties of the circle at the center of the gauge that anchors the pointer.

Syntax
Javascript (Usage) 
var value; // Type: radialgauge_cap
value = jQuery.wijmo.wijradialgauge.options.cap;
Javascript (Specification) 
var cap : radialgauge_cap;
Example
// This example creates a rectangular cap that begins 10 pixels to the left of and 10 pixels above the origin, and is 20
// pixels wide by 20 pixels tall. The cap is filled with purple and has no outline (stroke).
$(document).ready(function () {
    $("#radialgauge1").wijradialgauge({
        value: 180,
        max: 200,
        min: 0,
        cap: {
            template: function (ui) {
                var origin = ui.origin;
                return ui.canvas.rect(origin.x -10, origin.y -10, 20, 20).attr({fill: "purple", stroke: "none"});
            }
        }
    });
});
Browser Compatibility
7
5
5

See Also

Reference

options type

 

 


© 2013 All Rights Reserved.

Send comments on this topic.