# DotPlotChartStreamSource

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

Canonical: https://chart.syidax.com/docs/types/DotPlotChartStreamSource/

<a id="declaration"></a>

## Type declaration

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

<a id="related"></a>

## Related types

- [DotPlotCategoryDatum](https://chart.syidax.com/docs/types/DotPlotCategoryDatum.md)
- [DotPlotChartStreamEvent](https://chart.syidax.com/docs/types/DotPlotChartStreamEvent.md)
