interface ComparisonOptions {
    bars: readonly SeriesDataItem[];
    color?: string;
    paneIndex?: number;
    style?: SeriesStyle;
    symbol: string;
    type?: SeriesType;
}

Properties

bars: readonly SeriesDataItem[]

The instrument's own bars. Aligned to the primary series, see ./align.

color?: string

Line colour shorthand; style.color wins if both are given.

paneIndex?: number

Pane to draw on. Default 0, the price pane.

style?: SeriesStyle

Style overrides merged onto the chart type's defaults.

symbol: string

Instrument label, e.g. 'BANKNIFTY'. Carried on the handle for the host's UI.

type?: SeriesType

Renderer for the comparison. Default 'line'.