Interface ComparisonChartHost

The slice of the chart this controller needs. Chart satisfies it; declaring it structurally keeps the controller testable against a stub.

interface ComparisonChartHost {
    dataLayer: { length: number };
    addPrimitive(primitive: IPrimitive, paneIndex?: number): void;
    addSeries(type: SeriesType, options: AddSeriesOptions): SeriesApi;
    panes(): readonly ComparisonPane[];
    primarySeries(): null | SeriesApi;
    removePrimitive(primitive: IPrimitive): void;
}

Properties

dataLayer: { length: number }

Only length is read: it changes exactly when the shared time axis does.

Methods