# Quota attainment by rep (ranked horizontal bar chart)

> Every rep ranked by attainment, with a line at quota and the reps below it in a second colour.

This chart is one Chart-Output API request. Send the request below to `POST https://www.chart-output.com/api/v1/render` with an `Authorization: Bearer <API key>` header and the response is the image. The free plan includes 1,000 renders a month, no card.

- Page: https://www.chart-output.com/gallery/quota-by-rep
- Request as JSON: https://www.chart-output.com/gallery/quota-by-rep/spec.json
- Get a free API key: https://www.chart-output.com/auth/sign-up?ref=gallery-quota-by-rep-md

## When to pick it

Use it for a team scoreboard: who is above plan, who is below, and by how much.

## The data it takes

Columns: Rep, Attainment. 2 to 10 rows. An optional quota line. Attainment and quota as % of quota, like 104.

## The request

Change the content (title, labels, numbers, KPI values, annotations) and keep the rest.

```json
{
  "type": "bar",
  "width": 560,
  "height": 640,
  "textScale": 1.8,
  "format": "png",
  "devicePixelRatio": 2,
  "dataLabels": true,
  "data": {
    "labels": ["Priya", "Marcus", "Elena", "Tom", "Aisha", "Jonas"],
    "datasets": [
      {
        "label": "Attainment",
        "data": [124, 112, 104, 96, 88, 71],
        "backgroundColor": ["#3c5cdd", "#3c5cdd", "#3c5cdd", "#e0602a", "#e0602a", "#e0602a"],
        "borderWidth": 0,
        "borderRadius": 4,
        "barPercentage": 0.7
      }
    ]
  },
  "annotations": [
    {
      "type": "line",
      "axis": "x",
      "value": 100,
      "color": "#1d2640"
    }
  ],
  "options": {
    "indexAxis": "y",
    "layout": {
      "padding": {
        "right": 28
      }
    },
    "plugins": {
      "legend": {
        "display": false
      },
      "tooltip": {
        "enabled": false
      },
      "datalabels": {
        "anchor": "end",
        "align": "end",
        "offset": 4,
        "clamp": true,
        "color": "#1d2640",
        "backgroundColor": "#ffffff",
        "borderRadius": 4,
        "padding": 3,
        "font": {
          "size": 19,
          "weight": "700"
        },
        "numberFormat": {
          "suffix": "%",
          "maximumFractionDigits": 0
        }
      }
    },
    "scales": {
      "x": {
        "display": false,
        "beginAtZero": true,
        "grid": {
          "display": false
        },
        "grace": "18%"
      },
      "y": {
        "grid": {
          "display": false
        },
        "border": {
          "display": false
        },
        "ticks": {
          "color": "#1d2640",
          "font": {
            "weight": "600"
          }
        }
      }
    }
  },
  "kpiStrip": [
    {
      "label": "Team average",
      "value": "99.2%",
      "color": "#1d2640"
    },
    {
      "label": "Hit quota",
      "value": "3 of 6",
      "color": "#1d2640"
    },
    {
      "label": "Lowest, Jonas",
      "value": "71%",
      "color": "#b4461a"
    }
  ],
  "footer": {
    "left": "Source: CRM",
    "borderTop": true
  },
  "header": {
    "title": "Quota by rep",
    "subtitle": "Q4 to date, % of quota. Dashed line: quota",
    "logoUrl": "https://www.chart-output.com/gallery/acme-logo.png",
    "logoHeight": 22
  },
  "theme": {
    "backgroundColor": "#ffffff",
    "textPrimary": "#1d2640",
    "textSecondary": "#4a5368",
    "gridColor": "#e3e7ef",
    "mode": "light"
  }
}
```

## Questions

### How do I make this quota attainment by rep chart with my own data?

Paste your numbers into the box on this page and the chart and its request update. To make it from your own workflow, send that request to POST https://www.chart-output.com/api/v1/render with a free API key; the response is the image.

### What data does it take?

Columns: Rep, Attainment. 2 to 10 rows. An optional quota line. Attainment and quota as % of quota, like 104.

### Can ChatGPT or Claude make this chart?

Yes. Add https://www.chart-output.com/mcp as a custom connector and ask for the chart; its render_chart tool takes this page's request and returns the image, with no API key. Or use "Copy prompt for your AI" on this page.

### What does it cost?

The free plan includes 1,000 renders a month, with no card. Paid plans add more renders and remove the watermark.

### What do I get back?

A finished image: PNG by default, or SVG, WebP or JPEG, and PDF on Pro. Set "format" in the request.
