API REFERENCE

AreaChartStreamSource

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

Type declaration

typescript
export interface AreaChartStreamSource {
  push(value: number): void;
  pushBatch(values: ReadonlyArray<number> | Float32Array): void;
  shift(count: number): void;
  replace(values: ReadonlyArray<number> | Float32Array): void;
  snapshot(window?: number): Float32Array;
  subscribe(listener: (event: AreaChartStreamEvent) => void): () => void;
  readonly length: number;
}