Skip to documentation content

Documentation · Data

Funnel chart

Write the stages from the widest to the narrowest, one per line. Each bar is as wide as its count.

Open Funnel chart

When to use it

Show how many are left at each stage of a process: a sales pipeline, website conversion or a recruitment process.

Write the stages in the order people move through them. A funnel compares stages; to compare categories with no order, use a bar chart.

Working example

Copy this complete example into the Source tab, then press Generate. Change its labels or values to make your first version.

Tingraph source
funnel "Website conversion" {
  Visits 12000
  "Product views" 5400
  "Added to cart" 1900
  Checkout 820
  Purchase 610
}

Syntax reference

The same reference used by the editor and AI briefing. Syntax is notation-specific; use the keywords listed here.

Chart

SyntaxMeaning
funnel "Title" {open a funnel chart

Stages

SyntaxMeaning
Visits 12000one stage, named and counted, widest first
"Added to cart" 1900a name with a space goes in quotes

Funnel

SyntaxMeaning
percent onwrite each stage's share of the first

Look

SyntaxMeaning
colors colorfulauto, single, colorful, warm, cool, ink
colors "#2a78d6"one colour, pinned
style framedplain, ruled, framed, bold
legend bottomauto, none, right, bottom, top
values onwrite the number on every mark
size 520 340how big the chart is drawn
# commentline comment (also //)

Language rules

  • The file is one funnel "Title" { ... } block. Nothing may sit outside it.
  • A stage is Name 1200, one per line, from the first stage to the last.
  • A funnel is one run of stages: it takes no series, categories, bars, layout or grid lines.
  • Settings are written as name value, in any order.
  • Do not invent settings. Every one the language has is listed above.

Edit on the canvas

  • Drag a bar's end to change a stage's count, or edit stages in the chart panel.
  • Turn the share of the first stage on or off in the chart panel.

Generate replaces the drawing from source. Save before generating again if you want to preserve manual finishing touches.

Read Saving & exporting

Write it with an assistant

Tingraph AI already knows this notation. For another assistant, copy the tutorial below, describe your diagram under MY DIAGRAM, then paste the returned source into the editor. This prompt includes every syntax row, rule and working example above.

Read the complete prompt
You are writing Tingraph source. Tingraph is a small text language that draws a funnel chart. Answer with Tingraph source only.

SYNTAX
Chart
  funnel "Title" {            open a funnel chart

Stages
  Visits 12000                one stage, named and counted, widest first
  "Added to cart" 1900        a name with a space goes in quotes

Funnel
  percent on                  write each stage's share of the first

Look
  colors colorful             auto, single, colorful, warm, cool, ink
  colors "#2a78d6"            one colour, pinned
  style framed                plain, ruled, framed, bold
  legend bottom               auto, none, right, bottom, top
  values on                   write the number on every mark
  size 520 340                how big the chart is drawn
  # comment                   line comment (also //)

RULES
- The file is one `funnel "Title" { ... }` block. Nothing may sit outside it.
- A stage is `Name 1200`, one per line, from the first stage to the last.
- A funnel is one run of stages: it takes no `series`, `categories`, `bars`, `layout` or `grid` lines.
- Settings are written as `name value`, in any order.
- Do not invent settings. Every one the language has is listed above.

WORKED EXAMPLE
funnel "Website conversion" {
  Visits 12000
  "Product views" 5400
  "Added to cart" 1900
  Checkout 820
  Purchase 610
}

OUTPUT
- Reply with one fenced code block and nothing else.
- The block starts with `funnel "…" {` and ends with `}`.
- Do not invent keywords: use only the ones listed above.
- Keep labels short enough to read inside a box, and keep every ID unique.

MY DIAGRAM
Describe what you want here, then send this message.
How AI requests, attachments and privacy work

Something unclear? Contact support or read the Privacy Policy.