Interface LegendStatusLineOptions

Per-field switches for the status line. Every one defaults to on, so the absent option object reproduces the row exactly as it drew before these existed. A field whose data is missing draws nothing whether it is on or off.

interface LegendStatusLineOptions {
    background?: boolean;
    backgroundColor?: string;
    backgroundOpacity?: number;
    barChange?: boolean;
    chartValues?: boolean;
    lastDayChange?: boolean;
    lastValueLabel?: boolean;
    logo?: boolean;
    marketStatus?: boolean;
    title?: boolean;
    titleMode?: LegendTitleMode;
    volume?: boolean;
}

Properties

background?: boolean

Plate behind the row's text, for legibility over candles. Off by default: the row has never had one, and turning it on is a deliberate choice.

backgroundColor?: string

Plate color. Defaults to the theme background.

backgroundOpacity?: number

Plate opacity, 0..1. Default 0.8, matching the hover plate.

barChange?: boolean

Change over the hovered bar: readings tagged field: 'change'.

chartValues?: boolean

The OHLC readout: readings tagged field: 'ohlc'.

lastDayChange?: boolean

Change since the previous close, from status.lastDayChange.

lastValueLabel?: boolean

The source's own reading (untagged values). This is the scales-and-lines "last value label" control, which lands here because the legend is what draws that number on this row.

logo?: boolean

Symbol logo, when status supplies one.

marketStatus?: boolean

Session state from status.marketStatus.

title?: boolean

The bold name. Also the "name label" switch for an indicator row.

titleMode?: LegendTitleMode

Which name the title shows. Default symbol.

volume?: boolean

Readings tagged field: 'volume'.