Skip to content

Type Alias: IndicatorTrace ​

ts
type IndicatorTrace = CommonTraceAttributes & DomainTraceAttributes & object;

A single value as a big number, its delta to a reference, and / or a gauge (angular or bullet) with colored steps and a threshold.

Type Declaration ​

NameTypeDescription
align?"left" | "center" | "right"Horizontal alignment of the number and delta in the domain. No effect with an angular gauge, where they are always centered. Default center.
delta?IndicatorTraceDeltaThe delta (mode with delta).
gauge?IndicatorTraceGaugeThe gauge (mode with gauge).
mode?| "number" | "delta" | "gauge" | "number+delta" | "number+gauge" | "delta+number" | "delta+gauge" | "gauge+number" | "gauge+delta" | "number+delta+gauge" | "number+gauge+delta" | "delta+number+gauge" | "delta+gauge+number" | "gauge+number+delta" | "gauge+delta+number"What shows the value: number (the value as text), delta (its difference to delta.reference as text) and / or gauge (the value on an angular or bullet gauge).
number?IndicatorTraceNumberThe number (mode with number).
title?IndicatorTraceTitleThe indicator title.
type"indicator"Trace type.
value?numberThe value to show. Transitions (layout.transition, animate) count the number up and move the gauge bar.

Released under the MIT License.