---
title: "Quota Attainment Chart API — % to goal bullet bars | Imejis"
description: "Render quota attainment images — percent-to-goal bullet bars with a 100% target marker — set per API call. Create sales scorecards free with Imejis."
url: "https://www.imejis.io/components/bullet/quota-attainment"
---

# Quota Attainment Chart API — % to goal bullet bars | Imejis

Percent-to-goal bars for a sales team, scaled to 100%.

## Use cases

- Sales rep quota attainment cards
- Team goal-completion dashboards
- Weekly percent-to-target Slack graphics

## 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": "#ffffff"
  },
  "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": "#16a34a",
        "targetColor": "#0f172a",
        "showValues": true,
        "showTarget": true,
        "valueFormat": "percent",
        "opacity": 1
      }
    }
  ]
}
```

## Examples

### Rep quota attainment

Each rep as a percent-to-quota bar with a 100% target tick.

API overrides that reproduce this example:

```json
{
  "bullet.measureColor": "#16a34a",
  "bullet.valueFormat": "percent",
  "bullet.data": [
    {
      "label": "Dana",
      "value": 112,
      "target": 100,
      "max": 140,
      "ranges": [
        60,
        90,
        140
      ]
    },
    {
      "label": "Rai",
      "value": 88,
      "target": 100,
      "max": 140,
      "ranges": [
        60,
        90,
        140
      ]
    },
    {
      "label": "Kim",
      "value": 74,
      "target": 100,
      "max": 140,
      "ranges": [
        60,
        90,
        140
      ]
    }
  ]
}
```

### Team goal completion

Squad progress toward a shared goal, all on one 0–120% scale.

API overrides that reproduce this example:

```json
{
  "bullet.measureColor": "#7c3aed",
  "bullet.valueFormat": "percent",
  "bullet.data": [
    {
      "label": "Growth",
      "value": 96,
      "target": 100,
      "max": 120,
      "ranges": [
        50,
        80,
        120
      ]
    },
    {
      "label": "Platform",
      "value": 108,
      "target": 100,
      "max": 120,
      "ranges": [
        50,
        80,
        120
      ]
    },
    {
      "label": "Mobile",
      "value": 67,
      "target": 100,
      "max": 120,
      "ranges": [
        50,
        80,
        120
      ]
    }
  ]
}
```

## 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
- [Dark](https://www.imejis.io/components/bullet/dark.md) — A bright measure over muted bands on a dark card for social.
