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>;
Loading source...
Props
| Prop | Type | Default | Description |
|---|---|---|---|
width, height | number | — | 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
FunnelChartis a cartesian chart that does not use axes. It is compatible withTooltipandLegendchildren.- Use
Funnelto render the series; it handles all trapezoid geometry and event dispatch.