---
title: "Dark Funnel Chart API — Conversion funnels on dark | Imejis"
description: "Generate dark-mode funnel chart images — vivid conversion stages on a dark canvas for social. Fresh stage data per API call. Try Imejis free."
url: "https://www.imejis.io/components/funnel/dark"
---

# Dark Funnel Chart API — Conversion funnels on dark | Imejis

A vivid funnel on a dark canvas for social cards.

## Use cases

- Dark-theme growth report cards
- Night-mode pipeline graphics
- Dashboard funnel exports on dark backgrounds

## 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)". |

## Design JSON (this variant)

```json
{
  "title": "Funnel sample",
  "description": "A signup conversion funnel",
  "dimensions": {
    "width": 800,
    "height": 420
  },
  "background": {
    "color": "#0f172a"
  },
  "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": "#38bdf8",
        "showValues": true,
        "showPercent": true,
        "percentOf": "first",
        "valueFormat": "compact",
        "opacity": 1,
        "labelColor": "#0b1220"
      }
    }
  ]
}
```

## Examples

### Dark growth funnel

Visits → Paid on slate with conversion rates.

API overrides that reproduce this example:

```json
{
  "funnel.color": "#38bdf8",
  "funnel.labelColor": "#0b1220",
  "funnel.data": [
    {
      "label": "Visits",
      "value": 20000
    },
    {
      "label": "Signups",
      "value": 6400
    },
    {
      "label": "Trials",
      "value": 2600
    },
    {
      "label": "Paid",
      "value": 900
    }
  ],
  "funnel.showPercent": true,
  "funnel.percentOf": "first",
  "funnel.valueFormat": "compact"
}
```

### Dark pipeline colors

A per-stage colored pipeline on a near-black card.

API overrides that reproduce this example:

```json
{
  "funnel.color": "#38bdf8",
  "funnel.labelColor": "#0b1220",
  "funnel.data": [
    {
      "label": "Leads",
      "value": 600
    },
    {
      "label": "MQL",
      "value": 320
    },
    {
      "label": "SQL",
      "value": 150
    },
    {
      "label": "Won",
      "value": 60
    }
  ],
  "funnel.colors": [
    "#22d3ee",
    "#818cf8",
    "#e879f9",
    "#fb7185"
  ],
  "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).

## Related

- [Funnel component](https://www.imejis.io/components/funnel.md) — full reference and FAQs
- [Step conversion](https://www.imejis.io/components/funnel/step-conversion.md) — Stage-to-stage conversion rates (previous) instead of share of the top.
