What addComparison hands back: one instrument on the chart.

interface ComparisonHandle {
    paneIndex: number;
    series: SeriesApi;
    symbol: string;
    alignment(): ComparisonAlignment;
    list(): readonly ComparisonHandle[];
    priceScale(): PriceScale;
    remove(): void;
    setBars(bars: readonly SeriesDataItem[]): void;
}

Properties

paneIndex: number
series: SeriesApi

The series this comparison draws through, for style patches and markers. Data set on it directly skips alignment (use setBars), and removing it directly leaves the pane rebased with nothing on it (use remove).

symbol: string

Methods