Docs/Cartesian Components/Funnel

Funnel

Funnel is a graphical series component for rendering funnel charts, which display a series of diminishing stages (like a sales pipeline). Each stage is drawn as a trapezoid, with width proportional to the data value.

import { FunnelChart, Funnel, Tooltip } from "solid-recharts";

<FunnelChart width={500} height={300} data={data}>
  <Funnel dataKey="value" />
  <Tooltip />
</FunnelChart>;
FunnelChart
funnel-basic.tsxOpen ↗
Loading source...

Props

PropTypeDefaultDescription
dataKeystring | number—Data key for the trapezoid width (value per stage)
nameKeystring | number"name"Data key for stage names
fillstring"#808080"Fill color
strokestring"#fff"Outline color
reversedbooleanfalseReverse the funnel direction (top → bottom)
isAnimationActiveboolean | "auto""auto"Enable enter/update animation
animationDurationnumber1500Animation duration in milliseconds
lastShapeType"triangle" | "rectangle""triangle"Shape of the last stage
labelboolean | objectfalseRender labels on trapezoids
shapefunction—Custom trapezoid renderer (function form)
activeShapefunction—Custom renderer for the hovered trapezoid

See the recharts Funnel docs for the full prop matrix.

Notes

  • Automatic layout: Funnel does not use axes; it fills the chart container with automatically-sized trapezoids.
  • Reversed: set reversed={true} to flip the funnel (widest at the bottom).
  • Custom shapes: pass a function as shape to render custom trapezoid geometry; it receives the stage's geometry and data payload.
  • Per-stage styling: use <Cell> children to override fill/stroke per trapezoid, just like Bar or Pie.

See also

  • FunnelChart — the chart container
  • Cell — per-trapezoid fill/stroke overrides
  • Tooltip — hover interaction