Skip to content

Interface: WaterfallOptions

Defined in: stats/waterfall.ts:113

Properties

colormap?

ts
optional colormap?: ColormapSpec;

Defined in: stats/waterfall.ts:127


cols

ts
cols: number;

Defined in: stats/waterfall.ts:117

Cells across a row. A longer pushed column is block-maxed down to this.


domain?

ts
optional domain?: Range;

Defined in: stats/waterfall.ts:126

Value range mapped to the colormap. Strongly recommended: without it the heatmap re-reads its own min/max on every push and the colours breathe.


extent

ts
extent: Range;

Defined in: stats/waterfall.ts:115

Data-space extent one row spans — the frequency band, for a spectrogram.


fill?

ts
optional fill?: number;

Defined in: stats/waterfall.ts:129

Value filling rows that have not streamed in yet. Default domain[0], else 0.


fitView?

ts
optional fitView?: boolean;

Defined in: stats/waterfall.ts:149

Pin the view to the image (default true) — autoscale would pad around it.


history?

ts
optional history?: ArrayLike<number>;

Defined in: stats/waterfall.ts:135

A history to open with, cols * rows row-major with row 0 at the bottom (the oldest). The clock then reads the top row as the newest, so a pre-computed spectrogram gets the same time axis a streaming one does.


name?

ts
optional name?: string;

Defined in: stats/waterfall.ts:139

Series name — used as the colorbar caption.


renderType?

ts
optional renderType?: RenderType;

Defined in: stats/waterfall.ts:152

Buffer-usage hint. Default "dynamic": a waterfall exists to stream.


rows

ts
rows: number;

Defined in: stats/waterfall.ts:119

Rows of history kept on screen.


rowSeconds

ts
rowSeconds: number;

Defined in: stats/waterfall.ts:121

Seconds of signal one row covers; with rows this sets the time span.


smooth?

ts
optional smooth?: boolean;

Defined in: stats/waterfall.ts:137

Bilinear filtering (default true) vs. hard cells.


startTime?

ts
optional startTime?: number;

Defined in: stats/waterfall.ts:141

Clock of the first pushed row, in seconds. Default 0.


timeFormat?

ts
optional timeFormat?: TimeFormat | ((seconds) => string);

Defined in: stats/waterfall.ts:143

Time tick labels: a preset or your own formatter. Default "hh:mm:ss".


timeTicks?

ts
optional timeTicks?: number;

Defined in: stats/waterfall.ts:145

Roughly how many time ticks to place. Default 8.


timeTitle?

ts
optional timeTitle?: string;

Defined in: stats/waterfall.ts:147

Axis title for the time axis. Left alone when omitted.


yAxis?

ts
optional yAxis?: string;

Defined in: stats/waterfall.ts:150

MIT licensed. WebGL2 required.