// This example uses a custom image for the face of the gauge. The argument that we name ui in the example is a JSON object.
// This object has a canvas, which is a Raphael paper object, and we use the image method of the Raphael paper that takes five
// parameters: source, x, y, width, and height. See the Raphael documentation for more information.
$(document).ready(function () {
$("#radialgauge1").wijradialgauge({
value: 90,
radius: 120,
face: {
style: {},
template: function (ui) {
var url = "images/customGaugeFace.png";
return ui.canvas.image(url, ui.origin.x -ui.r, ui.origin.y -ui.r, ui.r * 2, ui.r * 2);
}
}
});
});