You can create any face for your gauge using colors, Raphael drawing, or even an image.
Building on the Quick Start example, you can draw circles with gradient colors to use for the face of the gauge using the face option.
Drop down and copy script to paste in <head> section
Script |
Copy Code |
---|---|
<script type="text/javascript"> $(document).ready(function () { $("#radialgauge1").wijradialgauge({ value: 90, radius: 185, face: { style: {}, template: function (ui) { var set = ui.canvas.set(); var circle = ui.canvas.circle(ui.origin.x, ui.origin.y, ui.r - 2); circle.attr({ "stroke": "#8f8f8f", "stroke-width": 3, fill: "#e2e2e2" }); set.push(circle); var circle2 = ui.canvas.circle(ui.origin.x, ui.origin.y, ui.r - 14); circle2.attr({ "stroke": "#717171", "stroke-width": 2, fill: "270-#a6a6a6-#efefef" }); set.push(circle2); return set; } } }); }); </script> |