---
title: "Dark Bullet Chart API — Actual vs target on dark | Imejis"
description: "Generate dark-mode bullet chart images — bright measure bars and target ticks over muted bands on a dark canvas. Fresh KPI data per API call. Try Imejis free."
url: "https://www.imejis.io/components/bullet/dark"
---

# Dark Bullet Chart API — Actual vs target on dark | Imejis

A bright measure over muted bands on a dark card for social.

## Use cases

- Dark-theme KPI scorecards
- Night-mode budget-vs-actual cards
- Dashboard exports on dark backgrounds

## Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `data` | `object[]` | `[]` | Rows top→bottom: array of { label, value, target, max?, ranges? }. |
| `max` | `number` | `0` | Global scale max when a row omits its own max (0 = auto). |
| `ranges` | `number[]` | `[]` | Global band thresholds (ascending) when a row omits its own ranges. |
| `measureColor` | `color` | `"#2563eb"` | The measure bar color. |
| `targetColor` | `color` | `"#0f172a"` | The target marker color. |
| `rangeColor` | `color` | `"#64748b"` | Base color for the graded qualitative bands. |
| `labelColor` | `color` | `"#334155"` | Row label text color. |
| `valueColor` | `color` | `"#0f172a"` | Value text color. |
| `showValues` | `boolean` | `true` | Print the measure value beside each bar. |
| `showTarget` | `boolean` | `true` | Draw the target marker. |
| `valueFormat` | `'number' \| 'compact' \| 'percent' \| 'currency'` | `"number"` | How values are formatted (1,200 / 1.2K / 12% / $1,200). |
| `currencySymbol` | `string` | `"$"` | Symbol used with the 'currency' format. |
| `gap` | `number` (min 0) | `12` | Gap between rows (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": "Bullet sample",
  "description": "A KPI actual-vs-target scorecard",
  "dimensions": {
    "width": 800,
    "height": 420
  },
  "background": {
    "color": "#0f172a"
  },
  "components": [
    {
      "id": "sample-bullet",
      "key": "bullet",
      "type": "bullet",
      "position": {
        "x": 170,
        "y": 110
      },
      "rotation": 0,
      "size": {
        "width": 460,
        "height": 200
      },
      "dynamic": true,
      "properties": {
        "data": [
          {
            "label": "Revenue",
            "value": 268,
            "target": 250,
            "ranges": [
              150,
              225,
              300
            ]
          },
          {
            "label": "Profit",
            "value": 21,
            "target": 26,
            "ranges": [
              12,
              20,
              30
            ]
          },
          {
            "label": "Orders",
            "value": 1320,
            "target": 1500,
            "ranges": [
              800,
              1200,
              1600
            ]
          }
        ],
        "measureColor": "#38bdf8",
        "targetColor": "#e2e8f0",
        "showValues": true,
        "showTarget": true,
        "valueFormat": "number",
        "opacity": 1,
        "rangeColor": "#94a3b8",
        "labelColor": "#e2e8f0",
        "valueColor": "#f8fafc"
      }
    }
  ]
}
```

## Examples

### Dark KPI scorecard

Revenue, profit and orders vs target on a slate card.

API overrides that reproduce this example:

```json
{
  "bullet.measureColor": "#38bdf8",
  "bullet.targetColor": "#e2e8f0",
  "bullet.rangeColor": "#94a3b8",
  "bullet.labelColor": "#e2e8f0",
  "bullet.valueColor": "#f8fafc",
  "bullet.data": [
    {
      "label": "Revenue",
      "value": 268,
      "target": 250,
      "ranges": [
        150,
        225,
        300
      ]
    },
    {
      "label": "Profit",
      "value": 21,
      "target": 26,
      "ranges": [
        12,
        20,
        30
      ]
    },
    {
      "label": "Orders",
      "value": 1320,
      "target": 1500,
      "ranges": [
        800,
        1200,
        1600
      ]
    }
  ]
}
```

### Dark budget vs actual

Spend against budget in compact dollars on a near-black card.

API overrides that reproduce this example:

```json
{
  "bullet.measureColor": "#34d399",
  "bullet.targetColor": "#e2e8f0",
  "bullet.rangeColor": "#94a3b8",
  "bullet.labelColor": "#e2e8f0",
  "bullet.valueColor": "#f8fafc",
  "bullet.data": [
    {
      "label": "Eng",
      "value": 82000,
      "target": 90000,
      "ranges": [
        50000,
        80000,
        100000
      ]
    },
    {
      "label": "Sales",
      "value": 61000,
      "target": 55000,
      "ranges": [
        30000,
        50000,
        70000
      ]
    },
    {
      "label": "Ops",
      "value": 24000,
      "target": 30000,
      "ranges": [
        15000,
        25000,
        35000
      ]
    }
  ],
  "bullet.valueFormat": "compact"
}
```

## API overrides

Push fresh rows per render with '<key>.data' (or just '<key>') as [{ label, value, target, ranges }]; the target marker and bands update with them.

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

```json
{
  "bullet.data": [
    {
      "label": "Revenue",
      "value": 268,
      "target": 250,
      "ranges": [
        150,
        225,
        300
      ]
    },
    {
      "label": "Profit",
      "value": 21,
      "target": 26,
      "ranges": [
        12,
        20,
        30
      ]
    },
    {
      "label": "Orders",
      "value": 1320,
      "target": 1500,
      "ranges": [
        800,
        1200,
        1600
      ]
    }
  ],
  "bullet.measureColor": "#2563eb",
  "bullet.targetColor": "#0f172a",
  "bullet.showValues": true,
  "bullet.showTarget": true,
  "bullet.valueFormat": "number",
  "bullet.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 '{
    "bullet.data": [
        {
            "label": "Revenue",
            "value": 268,
            "target": 250,
            "ranges": [
                150,
                225,
                300
            ]
        },
        {
            "label": "Profit",
            "value": 21,
            "target": 26,
            "ranges": [
                12,
                20,
                30
            ]
        },
        {
            "label": "Orders",
            "value": 1320,
            "target": 1500,
            "ranges": [
                800,
                1200,
                1600
            ]
        }
    ],
    "bullet.measureColor": "#2563eb",
    "bullet.targetColor": "#0f172a",
    "bullet.showValues": true,
    "bullet.showTarget": true,
    "bullet.valueFormat": "number",
    "bullet.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

- [Bullet component](https://www.imejis.io/components/bullet.md) — full reference and FAQs
- [Quota attainment](https://www.imejis.io/components/bullet/quota-attainment.md) — Percent-to-goal bars for a sales team, scaled to 100%.
