-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Description
Proposal
Funnel charts are one of the most widely used business visualizations for sales pipelines, conversion rates, support throughput, and AARRR metrics—yet Mermaid currently lacks them.
Use Cases
Sales Pipeline Visualization
Instantly show conversion rates across stages (Visitors → Leads → MQLs → SQLs → Opportunities → Closed-Won) with drop-off percentages in READMEs, Notion pages, or sales reports — the #1 requested use case in the community.
Product & Growth Metrics (AARRR Funnels)
Track user onboarding, activation, and retention funnels (Sign-ups → Verified → First Action → Active User → Paying Customer) directly in markdown docs, wikis, or analytics dashboards without embedding images.
Customer Support & Operations Throughput
Visualize ticket or issue resolution funnels (Incoming Tickets → Assigned → In Progress → Resolved → Closed) to highlight bottlenecks in internal runbooks, Confluence pages, or incident post-mortems.
Screenshots
Scaled funnel shapes:
With stage notes:
Syntax
Example syntax option 1:
# Simple - ID becomes the display label
funnel
stage1[100] --> stage2[50] --> stage3[25]
# With custom labels - ID separate from display text
funnel
stage1["Stage 1 is awesome": 100] --> stage2["Stage 2": 50] --> stage3[25]
# Notes reference by ID (unquoted)
funnel
stage1[100] --> stage2[50] --> stage3[25]
note stage1 "Description of stage 1"
note stage2 "Description of stage 2"
Example syntax option 2:
funnel title Customer Journey
"Awareness": 5000
desc "Customer discovers the brand"
desc "Through marketing channels"
"Interest": 2000
desc "Customer shows interest"
desc "Engages with content"
"Decision": 500
desc "Customer makes purchase"
Example syntax option 3: (Scaled funnel)
funnel showData trueScale
title Revenue by Quarter (Proportional)
"Q1": 2500000
"Q2": 1800000
"Q3": 900000
"Q4": 450000
Implementation
I will try and implement it myself.
