Skip to main content

Funnel Chart

A funnel chart component built using Recharts v3. Visualize stage-based conversion data with customizable colors, gradients, and glow effects.

Installation

$ npx shadcn@latest add @orecus/funnel-chart
Registry:
@orecus/chart@orecus/color-utils@orecus/chart-utils@orecus/card

Component

Conversion Funnel

E-commerce conversion stages

Sales Pipeline

B2B sales stages

Props

PropTypeDefaultDescription
data*{ name: string; value: number }[]The data for the chart - each item becomes a funnel segment
colorsThemeColor[]Colors for each segment
colorStyle'default' | 'gradient''gradient'Color fill style
glowbooleantrueAdd glow effect behind segments
showLabelsbooleantrueShow segment labels
labelPosition'inside' | 'right' | 'left''right'Label placement
reversedbooleanfalseReverse funnel direction (wide at bottom)
showLegendbooleantrueShow chart legend
cardPropsCardPropsProps to pass to the underlying Card component
tooltipSortByValuebooleanfalseSort tooltip items by value (descending)
legendIndicator'square' | 'circle' | 'line''square'Shape of legend indicators
legendShowValuesbooleanfalseShow values in legend
legendWrapbooleantrueAllow legend items to wrap