---
title: "Funnel Chart Image API — Conversion & pipeline stages | Imejis"
description: "Generate funnel chart images — conversion / pipeline stages narrowing top→bottom with values and conversion rates, set on every API call. Start free with Imejis."
url: "https://www.imejis.io/components/funnel"
---

# Funnel Chart Image API — Conversion & pipeline stages | Imejis

A funnel chart — conversion / pipeline stages narrowing top→bottom, each band sized to its value with optional conversion percentages. Built for growth and sales reports.

## Use cases

- Signup / activation conversion funnels for growth reports
- Sales pipeline stage graphics for CRM digests
- Checkout / cart drop-off visuals for e-commerce
- Recruiting or onboarding pipeline snapshots

## Authoring notes

- data is [{ label, value }] top→bottom — order matters; usually the first stage is the largest.
- showPercent adds the conversion rate; percentOf "first" = share of the top stage, "previous" = step conversion.
- Set colors[] for per-stage colors, or a single `color` that fades lighter down the funnel.
- Use a tallish box so stage labels + values stay legible on each band.

## Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `data` | `object[]` | `[]` | Stages top→bottom: array of { label, value }. |
| `colors` | `color[]` | `[]` | One color per stage (falls back to shades of `color`). |
| `color` | `color` | `"#6366f1"` | Base color when colors is unset. |
| `labelColor` | `color` | `"#ffffff"` | Text color drawn on the bands. |
| `showValues` | `boolean` | `true` | Print each stage value. |
| `valueFormat` | `'number' \| 'compact' \| 'percent' \| 'currency'` | `"compact"` | How values are formatted (1,200 / 1.2K / 12% / $1,200). |
| `currencySymbol` | `string` | `"$"` | Symbol used with the 'currency' format. |
| `showPercent` | `boolean` | `false` | Print the conversion percentage per stage. |
| `percentOf` | `'first' \| 'previous'` | `"first"` | Percent basis: share of the first stage or of the previous stage. |
| `gap` | `number` (min 0) | `2` | Gap between bands (px). |
| `opacity` | `number` | `1` | Overall component opacity from 0 (transparent) to 1 (opaque). |
| `borderWidth` | `number` | `0` | Border thickness in pixels around the component. |
| `borderColor` | `color` | `"transparent"` | Border color (any CSS color). |
| `borderStyle` | `'solid' \| 'dashed' \| 'dotted' \| 'double' \| 'none'` | `"solid"` | Border line style. |
| `borderRadius` | `number` | `0` | Corner radius in pixels. |
| `boxShadow` | `string` | — | CSS box-shadow applied to the component, e.g. "0 4px 6px rgba(0,0,0,0.1)". |

## Sample design JSON

```json
{
  "title": "Funnel sample",
  "description": "A signup conversion funnel",
  "dimensions": {
    "width": 800,
    "height": 420
  },
  "background": {
    "color": "#ffffff"
  },
  "components": [
    {
      "id": "sample-funnel",
      "key": "funnel",
      "type": "funnel",
      "position": {
        "x": 220,
        "y": 40
      },
      "rotation": 0,
      "size": {
        "width": 360,
        "height": 340
      },
      "dynamic": true,
      "properties": {
        "data": [
          {
            "label": "Visits",
            "value": 12000
          },
          {
            "label": "Signups",
            "value": 4200
          },
          {
            "label": "Trials",
            "value": 1800
          },
          {
            "label": "Paid",
            "value": 640
          }
        ],
        "color": "#6366f1",
        "showValues": true,
        "showPercent": true,
        "percentOf": "first",
        "valueFormat": "compact",
        "opacity": 1
      }
    }
  ]
}
```

## Examples

### Signup conversion funnel

Visits → Signups → Trials → Paid with conversion rates off the top stage.

API overrides that reproduce this example:

```json
{
  "funnel.data": [
    {
      "label": "Visits",
      "value": 12000
    },
    {
      "label": "Signups",
      "value": 4200
    },
    {
      "label": "Trials",
      "value": 1800
    },
    {
      "label": "Paid",
      "value": 640
    }
  ],
  "funnel.showValues": true,
  "funnel.showPercent": true,
  "funnel.percentOf": "first",
  "funnel.valueFormat": "compact"
}
```

### Sales pipeline

Deal stages from lead to won, in per-stage colors with dollar values.

API overrides that reproduce this example:

```json
{
  "funnel.data": [
    {
      "label": "Leads",
      "value": 480
    },
    {
      "label": "Qualified",
      "value": 260
    },
    {
      "label": "Proposal",
      "value": 120
    },
    {
      "label": "Won",
      "value": 54
    }
  ],
  "funnel.colors": [
    "#2563eb",
    "#7c3aed",
    "#c026d3",
    "#db2777"
  ],
  "funnel.showValues": true,
  "funnel.showPercent": true,
  "funnel.percentOf": "previous",
  "funnel.valueFormat": "number"
}
```

## API overrides

Push fresh stages per render with '<key>.data' (or just '<key>') as [{ label, value }]; colors are overridable too.

Flat override payload (`key.property` addressing) with the sample design's current values — send only the keys you want to change:

```json
{
  "funnel.data": [
    {
      "label": "Visits",
      "value": 12000
    },
    {
      "label": "Signups",
      "value": 4200
    },
    {
      "label": "Trials",
      "value": 1800
    },
    {
      "label": "Paid",
      "value": 640
    }
  ],
  "funnel.color": "#6366f1",
  "funnel.showValues": true,
  "funnel.showPercent": true,
  "funnel.percentOf": "first",
  "funnel.valueFormat": "compact",
  "funnel.opacity": 1
}
```

```bash
curl --location 'https://render.imejis.io/v1/{{YOUR_DESIGN_ID}}' \
--header 'dma-api-key: {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
    "funnel.data": [
        {
            "label": "Visits",
            "value": 12000
        },
        {
            "label": "Signups",
            "value": 4200
        },
        {
            "label": "Trials",
            "value": 1800
        },
        {
            "label": "Paid",
            "value": 640
        }
    ],
    "funnel.color": "#6366f1",
    "funnel.showValues": true,
    "funnel.showPercent": true,
    "funnel.percentOf": "first",
    "funnel.valueFormat": "compact",
    "funnel.opacity": 1
}'
```

`{{YOUR_DESIGN_ID}}` and `{{YOUR_API_KEY}}` are placeholders: first create
the design in your account (paste the sample design JSON above into the
editor at https://app.imejis.io, or create it programmatically via the
imejis MCP server's `create_design` + `update_design` tools), then render
it with the design's id and one of your API keys.

Agents: the MCP server at https://api.imejis.io/api/mcp exposes this same
catalog as structured data via the `list_component_types` tool (property
kinds, allowed values, bounds, ready-to-use sample designs).

## Frequently Asked Questions

### How do I pass the stages?

Send '<key>.data' as an array of { label, value } objects, top→bottom — each band is sized to its value.

### Can I show conversion rates?

Enable showPercent; percentOf "first" shows each stage as a share of the top stage, "previous" shows step-to-step conversion.

### Can I color each stage?

Set colors[] for per-stage colors, or a single color that automatically fades lighter down the funnel.

## Variants

- [Step conversion](https://www.imejis.io/components/funnel/step-conversion.md) — Stage-to-stage conversion rates (previous) instead of share of the top.
- [Dark](https://www.imejis.io/components/funnel/dark.md) — A vivid funnel on a dark canvas for social cards.

All components: https://www.imejis.io/components.md
