Skip to main content

Funnel chart

info

Charts are available with Avalonia Pro.

Funnel charts visualize the progressive reduction of data as it passes from one phase to another. Use them to identify bottlenecks in a linear process.

Funnel chart showing progressive reduction of data through sales pipeline stages from leads to closed sales.

When to use

  • Sales pipelines: Tracking potential customers from lead to closed sale.
  • Conversion rates: Monitoring website visitors through a checkout process.
  • Recruitment: Visualizing candidates at each stage of the hiring process.

Code example

XAML

<charts:FunnelChart Title="Sales Pipeline" Height="300"
ItemsSource="{Binding FunnelData}"
LabelPath="Stage" ValuePath="Value"/>

Data model (C#)

public record FunnelItem(string Stage, double Value);

public ObservableCollection<FunnelItem> FunnelData { get; } = new()
{
new("Visitors", 1000),
new("Leads", 500),
new("Qualified", 200),
new("Proposal", 80),
new("Closed", 30)
};

Common properties

PropertyDescriptionDefault
TitleThe name shown at the top.null
ItemsSourceThe collection of process stages.null
ValuePathPath to the property representing the quantity at each stage.null
LabelPathPath to the property for the stage names.null
NeckWidthThe width of the funnel "neck" as a ratio (0-1).0.3
SegmentGapThe gap between funnel segments.2.0
ShowLabelsWhether to display labels on segments.true
ShowValuesWhether to display numeric values on the chart.true
LabelFontSizeFont size used for segment labels.12.0
LabelForegroundBrush used for segment labels. When null, labels use white.null
IsHighlightEnabledEnables hover highlighting for funnel segments.false
IsSelectionEnabledWhether selection is enabled for funnel segments.false
SelectionModeSelection behavior for funnel segments.SingleDeselect
SelectionBrushBrush used for selected segments.#314A6E
SelectionStrokeOutline brush used for selected segments.null
SelectionStrokeThicknessOutline thickness used for selected segments.2.0
SelectedIndexIndex of the selected segment, or -1 when nothing is selected.-1