Interface: IndicatorTraceDelta
The delta (mode with delta).
Properties
| Property | Type | Default value | Description |
|---|---|---|---|
decreasing? | IndicatorTraceDeltaDecreasing | undefined | Style of a negative delta. |
font? | IndicatorTraceDeltaFont | undefined | Font of the delta. Defaults to layout.font, at half the number font size (or the number font size without a number). |
increasing? | IndicatorTraceDeltaIncreasing | undefined | Style 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? | number | undefined | The reference the delta is computed from. Default: value. |
relative? | boolean | false | Show the relative change (value − reference) / reference. |
suffix? | string | "" | Text after the delta. |
valueformat? | string | undefined | d3-format specifier of the delta. Default '2%' (a percentage, trailing zeros trimmed) when relative, else rounded like the number. |