# Churn vs target (bar chart)

> Monthly logo churn with the months above target in a second colour and the fix marked.

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/churn-vs-target
- Request as JSON: https://www.chart-output.com/gallery/churn-vs-target/spec.json
- Get a free API key: https://www.chart-output.com/auth/sign-up?ref=gallery-churn-vs-target-md

## When to pick it

Use it to show whether a monthly rate is on target: months over target take a second colour.

## The data it takes

Columns: Month, Churn. 2 to 24 rows. An optional target line. Churn and target as percentages, like 2.4.

## 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,
  "data": {
    "labels": ["Dec", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov"],
    "datasets": [
      {
        "label": "Churn",
        "data": [2.6, 2.4, 2.5, 2.3, 2.2, 2.1, 1.9, 1.8, 1.9, 1.7, 1.6, 1.6],
        "backgroundColor": ["#e0602a", "#e0602a", "#e0602a", "#e0602a", "#e0602a", "#e0602a", "#3c5cdd", "#3c5cdd", "#3c5cdd", "#3c5cdd", "#3c5cdd", "#3c5cdd"],
        "borderWidth": 0,
        "borderRadius": 3,
        "barPercentage": 0.72
      }
    ]
  },
  "annotations": [
    {
      "y": 2,
      "label": "Target 2.0%",
      "color": "#1d2640"
    },
    {
      "x": "Jun",
      "label": "New onboarding",
      "color": "#4a5368"
    }
  ],
  "options": {
    "plugins": {
      "legend": {
        "display": false
      }
    },
    "scales": {
      "x": {
        "grid": {
          "display": false
        },
        "border": {
          "color": "#e3e7ef"
        },
        "ticks": {
          "color": "#4a5368",
          "maxRotation": 0,
          "autoSkip": true,
          "maxTicksLimit": 6
        }
      },
      "y": {
        "beginAtZero": true,
        "border": {
          "display": false
        },
        "grid": {
          "color": "#e3e7ef",
          "drawTicks": false
        },
        "ticks": {
          "color": "#4a5368",
          "padding": 8,
          "maxTicksLimit": 5,
          "stepSize": 1
        }
      }
    }
  },
  "kpiStrip": [
    {
      "label": "Churn, Nov",
      "value": "1.6%",
      "color": "#13703f"
    },
    {
      "label": "6-mo average",
      "value": "1.8%",
      "color": "#1d2640"
    },
    {
      "label": "Over target",
      "value": "6 months",
      "color": "#b4461a"
    }
  ],
  "footer": {
    "left": "Source: billing",
    "borderTop": true
  },
  "header": {
    "title": "Churn vs target",
    "subtitle": "Logo churn per month, %",
    "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 churn vs target 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: Month, Churn. 2 to 24 rows. An optional target line. Churn and target as percentages, like 2.4.

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