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