Docs
📊 ⏐ Charts
Funnel Chart

Funnel Chart

A Funnel Chart in REAVIZ is perfect for visualizing the flow of data through various stages of a process. Each slice represents a step, with the final slice showing the end result. This type of chart helps you understand conversion rates and process efficiency.

Where to use:

  • Track Conversion Rates: Ideal for visualizing conversion rates at each stage.
  • Analyze Processes: Useful for identifying drop-offs in multi-step processes.
  • Evaluate Workflow Efficiency: Great for assessing the efficiency of a workflow.

Quick Start

To create a funnel chart, use import the FunnelChart and give it some data.

Examples

API

FunnelChart (opens in a new tab)

PropDescriptionDefault
dataChart shape used to render the funnel.
ChartShallowDataShape<ChartDataTypes | [ChartDataTypes, ChartDataTypes]>[]
seriesThe series component that renders the funnel components.
ReactElement<FunnelSeriesProps, FC<Partial<FunnelSeriesProps>>>
<FunnelSeries />
idId of the chart.
string
widthWidth of the chart. If not provided will autosize.
number
heightHeight of the chart. If not provided will autosize.
number
marginsMargins for the chart.
Margins
0
classNameClassnames for the chart.
string
containerClassNameClassnames for the chart.
string
styleAdditional css styles.
StyleHTMLAttributes<SVGSVGElement>
centerCenter the chart. Used mainly internally.
boolean
centerXCenter chart on X Axis only. Used mainly internally.
boolean
centerYCenter chart on Y Axis only. Used mainly internally.
boolean

FunnelSeries (opens in a new tab)

PropDescriptionDefault
dataParsed data shape. Set internally by `FunnelChart`.
ChartShallowDataShape<ChartDataTypes | [ChartDataTypes, ChartDataTypes]>[]
idId of the funnel chart. Set internally by `FunnelChart`.
string
arcThe arc component that renders the funnel shape.
ReactElement<FunnelArcProps, FC<Partial<FunnelArcProps>>>
<FunnelArc />
axisThe axis component that renders the funnel axis.
ReactElement<FunnelAxisProps, FC<Partial<FunnelAxisProps>>>
<FunnelAxis />
heightHeight of the chart. Set internally by `FunnelChart`.
number
widthWidth of the chart. Set internally by `FunnelChart`.
number
onSegmentClickEvent for when a segment is clicked.
(e: ClickEvent) => void

FunnelArc (opens in a new tab)

PropDescriptionDefault
idUnique identifier for the arc. Set internally by `FunnelChart`.
string
dataData to render the funnel. Set internally by `FunnelChart`.
ChartShallowDataShape<ChartDataTypes | [ChartDataTypes, ChartDataTypes]>[]
opacityOpacity of the funnel arc.
number
1
indexIndex of the funnel arc. Set internally by `FunnelChart`.
number
variantThe chart funnel style to use.
"default" | "layered"
default
xScalexScale for the funnel. Set internally by `FunnelChart`.
any
yScaleyScale for the funnel. Set internally by `FunnelChart`.
any
interpolationInterpolation for the area. Set internally by `AreaSeries`.
InterpolationTypes
smooth
colorSchemeColor scheme for the chart.
ColorSchemeType
schemes.cybertron[0]
gradientGradient to apply to the area.
ReactElement<GradientProps, FC<Partial<GradientProps>>>
( <Gradient direction="horizontal" stops={[ <GradientStop offset="0%" stopOpacity={1} key="stop" />, <GradientStop offset="80%" stopOpacity={0.5} key="start" /> ]} /> )
glowGlow styling for the arc.
Glow
tooltipTooltip for the chart area.
ReactElement<TooltipAreaProps, ForwardRefExoticComponent<Partial<TooltipAreaProps> & RefAttributes<any>>>
null

FunnelAxis (opens in a new tab)

PropDescriptionDefault
dataData to render the funnel. Set internally by `FunnelChart`.
ChartShallowDataShape<ChartDataTypes | [ChartDataTypes, ChartDataTypes]>[]
xScalexScale for the funnel. Set internally by `FunnelChart`.
any
yScaleyScale for the funnel. Set internally by `FunnelChart`.
any
lineThe funnel axis line.
ReactElement<FunnelAxisLineProps, FC<Partial<FunnelAxisLineProps>>>
<FunnelAxisLine />
labelLabel component for the axis.
ReactElement<FunnelAxisLabelProps, FC<Partial<FunnelAxisLabelProps>>>
<FunnelAxisLabel />

FunnelAxisLabel (opens in a new tab)

PropDescriptionDefault
dataData object for the label. Set internally by `FunnelAxis`.
ChartShallowDataShape<ChartDataTypes | [ChartDataTypes, ChartDataTypes]>
indexIndex of the label. Set internally by `FunnelAxis`.
number
fillColor of the text.
string
#fff
fontSizeFont size of the text.
number
13
fontFamilyFont family of the text.
string
sans-serif
paddingPadding of the label.
number
10
classNameClass name to apply to the text.
string
xScalexScale for the funnel. Set internally by `FunnelAxis`.
any
yScaleyScale for the funnel. Set internally by `FunnelAxis`.
any
positionPositioning of the label.
"top" | "bottom" | "middle"
middle
showValueWhether to show the value of the data. Defaults to `true`.
boolean
true
labelVisibilityVisibility of the label.
"auto" | "always"
auto

FunnelAxisLine (opens in a new tab)

PropDescriptionDefault
strokeColorColor of the axis lines.
string
#333
strokeWidthWidth of the axis lines.
number
2
xScalexScale for the funnel. Set internally by `FunnelChart`.
any
yScaleyScale for the funnel. Set internally by `FunnelChart`.
any
indexIndex of the line. Set internally by `FunnelAxis`.
number