Skip to content

Interface: IndicatorTraceDelta ​

The delta (mode with delta).

Properties ​

PropertyTypeDefault valueDescription
decreasing?IndicatorTraceDeltaDecreasingundefinedStyle of a negative delta.
font?IndicatorTraceDeltaFontundefinedFont of the delta. Defaults to layout.font, at half the number font size (or the number font size without a number).
increasing?IndicatorTraceDeltaIncreasingundefinedStyle of a positive delta.
position?"left" | "right" | "top" | "bottom""bottom"Where the delta goes relative to the number.
prefix?string""Text between the symbol and the delta.
reference?numberundefinedThe reference the delta is computed from. Default: value.
relative?booleanfalseShow the relative change (value − reference) / reference.
suffix?string""Text after the delta.
valueformat?stringundefinedd3-format specifier of the delta. Default '2%' (a percentage, trailing zeros trimmed) when relative, else rounded like the number.

Released under the MIT License.