Wijmo UI for the Web
labels Option

Type: wijmo.gauge.gauge_label

Sets all of the appearance options of the numeric labels that appear around the edge of the gauge.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  wijmo.gauge.gauge_label
    returnsValue = $(".selector").wijgauge("option", "labels");
    
    // Set value
    var newValue; // Type:  wijmo.gauge.gauge_label
    $(".selector").wijgauge("option", "labels", newValue);
        
});
Javascript (Specification) 
var labels : gauge_label;
Example
// This example sets the color for the labels to purple, and the font to 14 point, bold, Times New Roman.
$(document).ready(function () {
   $("#radialgauge1").wijradialgauge({
    value: 90,
    labels: {
    style: {
        fill: "purple",
            "font-size": "14pt",
            "font-weight": "bold",
            "font-family": "Times New Roman"
        }
    }
});
});
Browser Compatibility
7
5
5

See Also

Reference

options type
wijgauge jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.