Skip to content

Function: funnelLayout()

ts
function funnelLayout(items, opts?): FunnelStage[];

Defined in: charts/funnel.ts:46

Funnel layout: centered trapezoids stacked top-to-bottom, each stage's top width ∝ its value and bottom width ∝ the next value (the last stage tapers to a neck fraction of its own width). Pure — no side effects.

Parameters

ParameterType
itemsreadonly FunnelItem[]
optsFunnelLayoutOptions

Returns

FunnelStage[]

MIT licensed. WebGL2 required.