Skip to content

Interface: IndicatorTraceGauge ​

The gauge (mode with gauge).

Properties ​

PropertyTypeDefault valueDescription
axis?IndicatorTraceGaugeAxisundefinedThe gauge axis: its range, ticks and tick labels.
bar?IndicatorTraceGaugeBarundefinedThe bar from the start of the axis to the value. Default thickness 0.5 (0.25 on a bullet gauge) of the gauge's.
bgcolor?stringundefinedGauge background color. Default: layout.paper_bgcolor.
bordercolor?string"#444"Color of the gauge outline.
borderwidth?number1Width of the gauge outline in CSS px. Minimum: 0
shape?"angular" | "bullet""angular"Gauge shape: angular (a half ring with the number in its middle) or bullet (a horizontal bar, the number to its right).
steps?readonly IndicatorTraceGaugeStep[]undefinedColored bands of the gauge (ranges such as "good" / "bad"), drawn under the value bar.
threshold?IndicatorTraceGaugeThresholdundefinedA line marking a threshold value on the gauge.

Released under the MIT License.