Funnel

@nivo/funnelexperimental

A funnel chart.

This component also provides a React hook which can be used in headless mode: useFunnel(), meaning that you can compute the chart but handle the rendering by yourself, this hook supports almost the same properties as the chart.

The responsive alternative of this component is ResponsiveFunnel.

roll the dice
Actions Logs
Start interacting with the chart to log actions
Base
Datum[]required

Chart data.

numberrequired

Chart width for non-responsive component.

numberoptional

Chart default width for responsive component.

numberrequired

Chart height for non-responsive component.

numberoptional

Chart default height for responsive component.

number (ms)optional

Debounce width/height updates for responsive component.

(dimensions: { width: number; height: number }) => voidoptional

A callback for when responsive component is resized.

objectoptional
px
px
px
px

Chart margin.

stringoptionaldefault:'vertical'

Direction of the chart.

stringoptionaldefault:'smooth'

Part shape interpolation.

numberoptionaldefault:0
px

Spacing between parts

numberoptionaldefault:0.66

Blend shapes.

string | Functionoptional
open editor

Value format supporting d3-format notation, this formatted value will then be used for labels and tooltips.

Ref<SVGSVGElement>optional

Ref to the chart's container. Used on this page to generate/download the chart's image via html-to-image.

Style
Labels
Separators
Customization
Interactivity
Motion