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