# ItemChartStreamSource

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

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

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

## 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;
}
```

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

## Related types

- [ItemChartDatum](https://chart.syidax.com/docs/types/ItemChartDatum.md)
- [ItemChartStreamEvent](https://chart.syidax.com/docs/types/ItemChartStreamEvent.md)
