# FunnelChartStreamSource

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

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

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

## Type declaration

```typescript
export interface FunnelChartStreamSource {
  push(section: FunnelSectionSpec): void;
  pushBatch(sections: ReadonlyArray<FunnelSectionSpec>): void;
  shift(count: number): void;
  replace(sections: ReadonlyArray<FunnelSectionSpec>): void;
  snapshot(window?: number): FunnelSectionSpec[];
  latest(): FunnelSectionSpec | undefined;
  subscribe(listener: (event: FunnelChartStreamEvent) => void): () => void;
  readonly length: number;
}
```

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

## Related types

- [FunnelSectionSpec](https://chart.syidax.com/docs/types/FunnelSectionSpec.md)
- [FunnelChartStreamEvent](https://chart.syidax.com/docs/types/FunnelChartStreamEvent.md)
