Skip to content

Function: addWaterfall() ​

ts
function addWaterfall(plot, opts): WaterfallHandle;

Defined in: stats/waterfall.ts:236

Add a scrolling waterfall: frequency (or any x) across, time down, newest row on top. Feed it one column per step with WaterfallHandle.push; the time ticks follow on their own.

Clock labels are wider than plain numbers and the plot's left margin is not measured from them, so give it room — margin: { left: 72 } fits mm:ss.mmm.

Parameters ​

ParameterType
plotPlot
optsWaterfallOptions

Returns ​

WaterfallHandle

MIT licensed. WebGL2 required.