jQuery.wijmo.wijradialgauge Namespace > options type : cap Field |
Sets the size, color, and other properties of the circle at the center of the gauge that anchors the pointer.
Javascript (Usage) | |
---|---|
var value; // Type: radialgauge_cap value = jQuery.wijmo.wijradialgauge.options.cap; |
Javascript (Specification) | |
---|---|
|
// 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"}); } } }); });