API REFERENCE
DumbbellChartStreamSource
The DumbbellChartStreamSource type declaration and related types. Optional fields are marked with ?.
Type declaration
export interface DumbbellChartStreamSource {
push(datum: DumbbellPairDatum): void;
pushBatch(data: ReadonlyArray<DumbbellPairDatum>): void;
shift(count: number): void;
replace(data: ReadonlyArray<DumbbellPairDatum>): void;
snapshot(window?: number): DumbbellPairDatum[];
latest(): DumbbellPairDatum | undefined;
subscribe(listener: (event: DumbbellChartStreamEvent) => void): () => void;
readonly length: number;
}