Meter optimum Property
Example
Return the value of the optimum attribute in a gauge:
var x = document.getElementById("myMeter").optimum;
Try it Yourself »
Description
The optimum property sets or returns the value of the optimum attribute in a gauge.
The optimum attribute specifies the range where the gauge's value is considered to be an optimal value.
Browser Support
Property | |||||
---|---|---|---|---|---|
optimum | Yes | Not supported | Yes | 6.0 | Yes |
Syntax
Return the optimum property:
meterObject.optimum
Set the optimum property:
meterObject.optimum = number
Property Values
Value | Description |
---|---|
number | Specifies a floating point number that is the optimal value of the gauge |
Technical Details
Return Value: | A Number, representing a floating point number that is the optimal value of the gauge |
---|
More Examples
Example
Change the value of the optimum attribute in a gauge:
document.getElementById("myMeter").optimum = "0.7";
Try it Yourself »
Related Pages
HTML reference: HTML <meter> optimum attribute
❮ Meter Object
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.