# LollipopChartStreamSource

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

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

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

## Type declaration

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

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

## Related types

- [LollipopBarDatum](https://chart.syidax.com/docs/types/LollipopBarDatum.md)
- [LollipopChartStreamEvent](https://chart.syidax.com/docs/types/LollipopChartStreamEvent.md)
