Wijmo UI for the Web
template Field
wijmo.gauge Namespace > gauge_face Interface : template Field

A JavaScript callback value that returns a Raphael element (or set) that draws the gauge face.

Syntax
var instance; // Type: wijmo.gauge.gauge_face;
var value; // Type: Function
value = instance.template;
var template : Function;
Remarks
If you are only using one shape, the function returns a Raphael element. If you define multiple shapes, have the function create a Raphael set object, push all of the Raphael elements to the set, and return the set to wijgauge. In order to use the template, you must know how to draw Raphael graphics. For more information, see the Raphael documentation. In radial gauge The face template's callback contains one argument with the following parameters: origin -- The starting point from which to draw the center of the face.This argument is defined by x and y coordinates. canvas -- A Raphael paper object that you can use to draw the custom graphic to use as the face.
See Also

Reference

gauge_face Interface