# ParetoChartStreamSource

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

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

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

## Type declaration

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

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

## Related types

- [ParetoBarDatum](https://chart.syidax.com/docs/types/ParetoBarDatum.md)
- [ParetoChartStreamEvent](https://chart.syidax.com/docs/types/ParetoChartStreamEvent.md)
