// 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.
// We also set the radius to 120 pixels to render it inside the white area of the image.
$(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);
}
}
});
});