Wijmo UI for the Web
islogarithmic Option

Default value: false

The islogarithmic option, inherited from the jquery.wijmo.wijgauge.js base class, indicates whether to use logarithmic scaling for gauge label numeric values.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  boolean
    returnsValue = $(".selector").wijgauge("option", "islogarithmic");
    
    // Set value
    var newValue; // Type:  boolean
    $(".selector").wijgauge("option", "islogarithmic", newValue);
        
});
Javascript (Specification) 
var islogarithmic : boolean;
Example
// The following code creates a gauge with the number labels and tick marks arranged as in the following image.
   $(document).ready(function () {
       $("#radialgauge1").wijradialgauge({
    value: 90,
    islogarithmic: true
    });
    });
Remarks
This adds space between tick marks that corresponds to the percentage of change between those numbers rather than absolute arithmetic values. You would want to use logarithmic scaling if you were displaying really high numbers, because it goes higher much more quickly. A linear scale is more difficult to use if you are displaying really high numbers. Note: By default, Wijmo uses a logarithmic base of 10, the common logarithm. See logarithmicBase for information on changing this value.
Browser Compatibility
7
5
5

See Also

Reference

options type
wijgauge jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.