Funnel Chart in C#
Build funnel charts in C# with AddFunnel — stage-by-stage conversion and sales pipelines rendered as self-contained SVG. MIT licensed, no dependencies.
Funnel Chart
AddFunnel() — stacked trapezoid stages.
When to use a funnel chart
Reach for it when
- A sequential process where each stage is a subset of the one before it — signup to paid, lead to close.
- Drop-off analysis, where the narrowing itself is the finding.
- Four to seven stages. Fewer is a bar chart; more and the bottom stages vanish.
Use something else when
- Stages that are not nested. If a step can gain items the funnel shape is a lie; use a Sankey diagram.
- Precise comparison between adjacent stages — the tapering shape distorts width judgement.
- Processes that branch. A funnel has one path; flows that split need a Sankey.
Funnel Chart in C#
Lifted verbatim from the chart types reference, so it compiles against the shipped API. See the API reference for every overload and the exact data types each series method accepts.
string svg = ChartBuilder.Create()
.Title("Sales Pipeline")
.Size(600, 440)
.XAxis("Stage", "Leads","Qualified","Proposal","Negotiation","Closed")
.AsAnimated()
.Series(s => s
.AddFunnel("Pipeline",
new double[] { 5000, 2800, 1400, 620, 310 },
cfg => cfg.Label(dl => dl.Show())))
.RenderToSvg();Install
dotnet add package TerraFluent.Chart.Reporting
- MIT licensed — free for commercial use, no chart limits, no watermarks.
- Zero dependencies — nothing but the .NET base class library.
- netstandard2.0 through net10.0 — .NET Framework 4.6.1+, .NET Core 2.0+, and every modern release.
- Output is one SVG string — embed it in HTML, a PDF, or a Word document.