API REFERENCE

PieChartStreamSource

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

Type declaration

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