Wijmo UI for the Web
logarithmicBase Option

Default value: 10

The logarithmicBase option, inherited from the jquery.wijmo.wijgauge.js base class, indicates the logarithmic base to use if the islogarithmic option is set to true. The logarithmic base is the number to raise to produce the exponent.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  number
    returnsValue = $(".selector").wijlineargauge("option", "logarithmicBase");
    
    // Set value
    var newValue; // Type:  number
    $(".selector").wijlineargauge("option", "logarithmicBase", newValue);
        
});
Javascript (Specification) 
var logarithmicBase : number;
Remarks
For example, with the default base 10, a logarithm of 3 produces 1000, or 10 to the power of 3, or 10³ = 10 x 10 x 10 = 1000. If you change the base to 2, a logarithm of 3 produces 8, or 2³ = 2 x 2 x 2 = 8. You can use the natural logarithm (using a base of ≈ 2.718) by specifying the value Math.e.
Browser Compatibility
7
5
5

See Also

Reference

options type
wijlineargauge jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.