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