API REFERENCE

MarimekkoChartStreamSource

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

Type declaration

typescript
export interface MarimekkoChartStreamSource {
  push(datum: MarimekkoColumnDatum): void;
  pushBatch(data: ReadonlyArray<MarimekkoColumnDatum>): void;
  shift(count: number): void;
  replace(data: ReadonlyArray<MarimekkoColumnDatum>): void;
  snapshot(window?: number): MarimekkoColumnDatum[];
  latest(): MarimekkoColumnDatum | undefined;
  subscribe(listener: (event: MarimekkoChartStreamEvent) => void): () => void;
  readonly length: number;
}