API REFERENCE

ItemChartStreamSource

The ItemChartStreamSource type declaration and related types. Optional fields are marked with ?.

Type declaration

typescript
export interface ItemChartStreamSource {
  push(datum: ItemChartDatum): void;
  pushBatch(datums: ReadonlyArray<ItemChartDatum>): void;
  shift(count: number): void;
  replace(datums: ReadonlyArray<ItemChartDatum>): void;
  snapshot(window?: number): ItemChartDatum[];
  subscribe(listener: (event: ItemChartStreamEvent) => void): () => void;
  readonly length: number;
}