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
.
Chart data.
Chart width.
Chart height.
Chart margin.
'vertical'
Direction of the chart.
'smooth'
Part shape interpolation.
0
Spacing between parts
0.66
Blend shapes.
Value format supporting d3-format notation, this formatted value will then be used for labels and tooltips.
Define style for common elements such as labels, axes…
Define chart's colors.
1
Part background opacity.
6
Width of part border.
Method to compute border color.
0.66
Part border opacity.
true
Enable/disable labels. Use styles from theme.labels.text.
Method to compute label color.
true
Enable/disable before separators. Separators inherit styles from theme.grid.line.
0
Length of the before separator lines. You should add margin for them to be visible if the value is greater than 0.
0
Offset from the parts for the before separator lines. You should add margin for them to be visible if the value is greater than 0.
true
Enable/disable after separators. Separators inherit styles from theme.grid.line.
0
Length of the after separator lines. You should add margin for them to be visible if the value is greater than 0.
0
Offset from the parts for the after separator lines. You should add margin for them to be visible if the value is greater than 0.
'separators'
, 'parts'
, 'labels'
, 'annotations'
]Defines the order of layers and add custom layers.
true
Enable/disable interactivity.
0
Expand part size by this amount of pixels on each side when it's active
Override default border width when a part is active.
onMouseEnter handler.
onMouseMove handler.
onMouseLeave handler.
onClick handler.
true
Enable/disable transitions.
'default'
Motion config for react-spring, either a preset or a custom configuration.