Name
Meter — a graphical meter or gauge
Inherits from
Node, Element
Synopsis
A Meter object represents an HTML <meter> element that displays a
graphical representation of a value within a range of possible
values, where the range may optionally be annotated to indicate
regions that are considered low, optimum, and high.
Most of the properties of this object simply mirror the HTML attributes with the same name. The JavaScript properties are numbers, however, while the HTML attributes are strings.
<meter> is an HTML5
element that, at the time of this writing, is not yet widely
supported.
Properties
readonly FormformThe Form element, if there is one, that is the ancestor of this element or that was identified with the HTML
formattribute.doublehighIf specified, this property indicates that values between
highandmaxshould be graphically indicated as “high”.readonly NodeListlabelsAn array-like object of Label elements that are associated with this element.
doublelowIf specified, this property indicates that values between
minandlowshould be graphically indicated as “low”.doublemaxThe maximum value that can be displayed by the
<meter>. The default is 1.doubleminThe minimum value that can be displayed by the
<meter>. The default is 0.doubleoptimumIf specified, the value that should be considered an optimum value.
doublevalueThe value that is represented by this
<meter>.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access