Docs/Charts/FunnelChart

FunnelChart

FunnelChart is the cartesian container for Funnel series. It owns the chart's layout, scales, and interaction state; children like Tooltip and Legend register themselves into it.

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

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

Props

PropTypeDefaultDescription
width, heightnumber—Fixed size (omit when inside ResponsiveContainer)
margin{ top, right, bottom, left }{ 5, 5, 5, 5 }Space around the plot area
onClick, onMouseMove, …function—Chart-level mouse events with the active payload

All other recharts FunnelChart props are supported; see the recharts FunnelChart docs for the full matrix.

Notes

  • FunnelChart is a cartesian chart that does not use axes. It is compatible with Tooltip and Legend children.
  • Use Funnel to render the series; it handles all trapezoid geometry and event dispatch.

See also