Skip to Content

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Β 

NameTypeDefault
dataChartShallowDataShape[]

Chart shape used to render the funnel.

seriesReactElement<FunnelSeriesProps, FC<Partial<FunnelSeriesProps>>>

The series component that renders the funnel components.

`<FunnelSeries />`
idstring

Id of the chart.

widthnumber

Width of the chart. If not provided will autosize.

heightnumber

Height of the chart. If not provided will autosize.

marginsMargins

Margins for the chart.

classNamestring

Classnames for the chart.

containerClassNamestring

Classnames for the chart.

styleStyleHTMLAttributes<SVGSVGElement>

Additional css styles.

centerboolean

Center the chart. Used mainly internally.

centerXboolean

Center chart on X Axis only. Used mainly internally.

centerYboolean

Center chart on Y Axis only. Used mainly internally.

FunnelSeriesΒ 

NameTypeDefault
dataChartShallowDataShape[]

Parsed data shape. Set internally by FunnelChart.

idstring

Id of the funnel chart. Set internally by FunnelChart.

arcReactElement<FunnelArcProps, FC<Partial<FunnelArcProps>>>

The arc component that renders the funnel shape.

`<FunnelArc />`
axisReactElement<FunnelAxisProps, FC<Partial<FunnelAxisProps>>>

The axis component that renders the funnel axis.

`<FunnelAxis />`
heightnumber

Height of the chart. Set internally by FunnelChart.

widthnumber

Width of the chart. Set internally by FunnelChart.

onSegmentClick(e: ClickEvent) => void

Event for when a segment is clicked.

FunnelArcΒ 

NameTypeDefault
idstring

Unique identifier for the arc. Set internally by FunnelChart.

dataChartShallowDataShape[]

Data to render the funnel. Set internally by FunnelChart.

opacitynumber

Opacity of the funnel arc.

1
indexnumber

Index of the funnel arc. Set internally by FunnelChart.

variant"default" | "layered"

The chart funnel style to use.

'default'
xScaleany

xScale for the funnel. Set internally by FunnelChart.

yScaleany

yScale for the funnel. Set internally by FunnelChart.

interpolationInterpolationTypes

Interpolation for the area. Set internally by AreaSeries.

'smooth'
colorSchemeColorSchemeType

Color scheme for the chart.

schemes.cybertron[0]
gradientReactElement<GradientProps, FC<Partial<GradientProps>>> | null

Gradient to apply to the area.

`<Gradient direction="horizontal" stops={[<GradientStop offset="0%" stopOpacity={1} />, <GradientStop offset="80%" stopOpacity={0.5} />]} />`
glowGlow

Glow styling for the arc.

tooltipReactElement<TooltipAreaProps, ForwardRefExoticComponent<Partial<TooltipAreaProps> & RefAttributes<any>>>

Tooltip for the chart area.

FunnelAxisΒ 

NameTypeDefault
dataChartShallowDataShape[]

Data to render the funnel. Set internally by FunnelChart.

xScaleany

xScale for the funnel. Set internally by FunnelChart.

yScaleany

yScale for the funnel. Set internally by FunnelChart.

lineReactElement<FunnelAxisLineProps, FC<Partial<FunnelAxisLineProps>>> | null

The funnel axis line.

`<FunnelAxisLine />`
labelReactElement<FunnelAxisLabelProps, FC<Partial<FunnelAxisLabelProps>>> | null

Label component for the axis.

`<FunnelAxisLabel />`

FunnelAxisLabelΒ 

NameTypeDefault
dataChartShallowDataShape

Data object for the label. Set internally by FunnelAxis.

indexnumber

Index of the label. Set internally by FunnelAxis.

fillstring

Color of the text.

'#fff'
fontSizenumber

Font size of the text.

13
fontFamilystring

Font family of the text.

'sans-serif'
paddingnumber

Padding of the label.

10
classNamestring

Class name to apply to the text.

xScaleany

xScale for the funnel. Set internally by FunnelAxis.

yScaleany

yScale for the funnel. Set internally by FunnelAxis.

position"top" | "middle" | "bottom"

Positioning of the label.

'middle'
showValueboolean

Whether to show the value of the data.

true
labelVisibility"auto" | "always"

Visibility of the label.

'auto'

FunnelAxisLineΒ 

NameTypeDefault
strokeColorstring

Color of the axis lines.

'#333'
strokeWidthnumber

Width of the axis lines.

2
xScaleany

xScale for the funnel. Set internally by FunnelChart.

yScaleany

yScale for the funnel. Set internally by FunnelChart.

indexnumber

Index of the line. Set internally by FunnelAxis.

Last updated on