Funnels

A funnel shows how many make it through each stage of a process, such as visits, product views, cart, checkout and purchase. Each stage is a segment as wide as its share of the largest, narrowing to the next, so the drop between stages is easy to see.

Stages narrowing down

FunnelSeries draws one segment per item, top to bottom in the order of the items: XValue is the stage and YValue how many reached it. Larger stages are taller as well as wider. Each segment has a palette color of its own and shows its value and its share of the stage before; the stage names sit in a column on the left, each with a thin line to its segment. A value that does not fit in its segment goes just after it. The tooltip adds the share of the first stage. DataLabels="false" leaves the values out.

Shop funnel, March. Funnel chart with 5 items: Visits 15,000, Product views 10,000 (66.7%), Cart 7,000 (70%), Checkout 4,000 (57.1%), Purchase 2,000 (50%). Shop funnel, MarchVisitsProduct viewsCartCheckoutPurchase15,000 (100%)10,000 (66.7%)7,000 (70%)4,000 (57.1%)2,000 (50%)Use Left and Right to move between points. Press Escape to leave.
Code
Razor
<RioChart Items="shop" Title="Shop funnel, March">
    <FunnelSeries Name="Visitors" XValue="s => s.Name" YValue="s => s.Users" Format="#,0" />
</RioChart>

From raw events

With Aggregate, items with the same stage are combined into one segment, so a list of events per channel gives the funnel directly. Stages appear in the order they are first seen. Clicking a stage with Selection on selects the items behind it. In JSON definitions: "type": "funnel" with "x", "y" and "aggregate".

Funnel chart with 4 items: Product page 8,100, Cart 2,400 (29.6%), Checkout 1,150 (47.9%), Paid 920 (80%). Product pageCartCheckoutPaid8,100 (100%)2,400 (29.6%)1,150 (47.9%)920 (80%)Use Left and Right to move between points. Press Escape to leave.

Click a stage to select its events.

Code
Razor
<RioChart Items="events" Selection="ChartSelectionMode.Points" @bind-SelectedItems="picked">
    <FunnelSeries Name="Shoppers" XValue="e => e.Step" YValue="e => e.Count" Aggregate="Aggregate.Sum" />
</RioChart>

One color, one stage highlighted

Color on the series draws every stage in that color; ColorValue then gives a stage its own, for example the step with the largest drop.

Funnel chart with 5 items: Applied 420, Screened 260 (61.9%), Interview 64 (24.6%), Offer 18 (28.1%), Hired 14 (77.8%). AppliedScreenedInterviewOfferHired420 (100%)260 (61.9%)64 (24.6%)18 (28.1%)14 (77.8%)Use Left and Right to move between points. Press Escape to leave.
Code
Razor
<RioChart Items="hiring">
    <FunnelSeries Name="Candidates" XValue="s => s.Name" YValue="s => s.Users" Color="--rio-series-1"
                  ColorValue="@(s => s.Name == "Interview" ? "--rio-negative" : null)" />
</RioChart>
An unhandled error has occurred. Reload 🗙