# PieChartStreamSource

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

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

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

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

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

## Related types

- [PieChartDatum](https://chart.syidax.com/docs/types/PieChartDatum.md)
- [PieChartStreamEvent](https://chart.syidax.com/docs/types/PieChartStreamEvent.md)
