# Trials and conversion rate (bar and line chart)

> Weekly trials as bars with the trial-to-paid rate as a line on its own scale, so volume and quality read together.

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

## When to pick it

Use it when a count and a rate move together and putting them on one axis would flatten one of them.

## The data it takes

Columns: Week, Trials, Rate. 2 to 16 rows. The rate is a percentage, like 24.6.

## 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,
  "legend": {
    "display": true,
    "position": "top",
    "style": "square",
    "fontSize": 13
  },
  "dataLabels": true,
  "data": {
    "labels": ["Aug 31", "Sep 7", "Sep 14", "Sep 21", "Sep 28", "Oct 5", "Oct 12", "Oct 19"],
    "datasets": [
      {
        "type": "bar",
        "label": "Trials started",
        "data": [884, 912, 951, 938, 975, 1002, 987, 1034],
        "yAxisID": "y",
        "order": 1,
        "backgroundColor": "#3c5cdd",
        "borderWidth": 0,
        "borderRadius": {
          "topLeft": 4,
          "topRight": 4
        },
        "barPercentage": 0.7,
        "datalabels": {
          "display": false
        }
      },
      {
        "type": "line",
        "label": "Trial-to-paid rate, %",
        "data": [22.8, 23.4, 24.1, 24.6, 25.2, 25, 26.1, 26.7],
        "yAxisID": "y1",
        "order": 0,
        "borderColor": "#e0602a",
        "backgroundColor": "#e0602a",
        "borderWidth": 4,
        "borderDash": [],
        "tension": 0.25,
        "pointRadius": 5,
        "pointBackgroundColor": "#e0602a",
        "pointBorderColor": "#ffffff",
        "pointBorderWidth": 2,
        "datalabels": {
          "anchor": "end",
          "align": "top",
          "offset": 6,
          "clamp": true,
          "color": ["#b4461a", "rgba(0,0,0,0)", "rgba(0,0,0,0)", "rgba(0,0,0,0)", "rgba(0,0,0,0)", "rgba(0,0,0,0)", "rgba(0,0,0,0)", "#b4461a"],
          "font": {
            "size": 17,
            "weight": "700"
          },
          "numberFormat": {
            "suffix": "%",
            "maximumFractionDigits": 1
          }
        }
      }
    ]
  },
  "options": {
    "plugins": {
      "tooltip": {
        "enabled": false
      }
    },
    "scales": {
      "x": {
        "grid": {
          "display": false
        },
        "border": {
          "color": "#e3e7ef"
        },
        "ticks": {
          "color": "#4a5368",
          "maxRotation": 0,
          "autoSkip": true,
          "maxTicksLimit": 4
        }
      },
      "y": {
        "beginAtZero": true,
        "border": {
          "display": false
        },
        "grid": {
          "color": "#e3e7ef",
          "drawTicks": false
        },
        "ticks": {
          "color": "#3c5cdd",
          "padding": 8,
          "maxTicksLimit": 4
        },
        "grace": "95%"
      },
      "y1": {
        "display": true,
        "position": "right",
        "beginAtZero": true,
        "grace": "14%",
        "border": {
          "display": false
        },
        "grid": {
          "drawOnChartArea": false,
          "drawTicks": false
        },
        "ticks": {
          "color": "#b4461a",
          "padding": 8,
          "maxTicksLimit": 4,
          "font": {
            "size": 22
          }
        }
      }
    }
  },
  "kpiStrip": [
    {
      "label": "Trials, last week",
      "value": "1,034",
      "color": "#1d2640"
    },
    {
      "label": "Trial to paid",
      "value": "26.7%",
      "color": "#1d2640"
    },
    {
      "label": "Rate, 8 weeks",
      "value": "+3.9 pts",
      "color": "#13703f"
    }
  ],
  "footer": {
    "left": "Source: product analytics",
    "borderTop": true
  },
  "header": {
    "title": "Trials and conversion",
    "subtitle": "Weekly, last 8 weeks",
    "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 trials and conversion rate 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: Week, Trials, Rate. 2 to 16 rows. The rate is a percentage, like 24.6.

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