# Line chart OG image template

A real area chart drawn from a list of values, running to the edges of the frame, with the latest value called out.

- Slug: `line-chart`
- Preview (real render): https://shareglint.com/storage/template-previews/line-chart.jpg
- Page: https://shareglint.com/en/templates/line-chart

Send the series as text — `Jan:120, Feb:180, Mar:240` — and the card draws up to 24 points with a filled area, scaled to the data, so a price or an MRR line moves as it should. One point becomes a flat level, parts without a number are skipped. Wide frames show the latest value and its change in the header; square and vertical frames hang it in a callout over the last point, above it after a rise and below it after a fall.

## Fields

Every field is optional. Long text shrinks to fit instead of overflowing; an image field takes a public URL that we fetch on our side.

| Field | Type | Description | Example |
|---|---|---|---|
| `title` | text | Headline above the chart. (default: Chart title) | Monthly recurring revenue keeps climbing |
| `series` | text | Points as label:number pairs separated by commas, semicolons or new lines, e.g. Jan:120, Feb:180, Mar:240. At most 24. (default: Jan:12, Feb:18, Mar:25) | Jan:21.4, Feb:23.0, Mar:22.1, Apr:26.8, May:29.5, Jun:28.7, Jul:33.9, Aug:37.2, Sep:41.6, Oct:48.2 |
| `highlight` | text | Change next to the latest value, e.g. +38% since June. A leading minus turns it red with a down arrow. | +38% since June |
| `unit` | text | What the numbers are, shown above the title, e.g. MRR, $ thousands. | MRR, $ thousands |
| `period` | text | Time range in the pill, e.g. Jan – Oct 2026. | Jan – Oct 2026 |
| `source` | text | Data source under the chart. | Source: Stripe dashboard |
| `site` | text | Site or brand under the chart. | northwind.dev/open |
| `logo` | image URL | Logo next to the unit. | https://example.com/images/logo-northwind.png |
| `accent` | colour | Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. (default: #22d3ee) | #22d3ee |
| `theme` | dark | light | Colour scheme: dark or light. | — |

## Render it with one request

```bash
curl -X POST "https://shareglint.com/v1/images?wait=true" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "line-chart",
    "modifications": {
        "title": "Monthly recurring revenue keeps climbing",
        "series": "Jan:21.4, Feb:23.0, Mar:22.1, Apr:26.8, May:29.5, Jun:28.7, Jul:33.9, Aug:37.2, Sep:41.6, Oct:48.2",
        "highlight": "+38% since June",
        "unit": "MRR, $ thousands",
        "period": "Jan – Oct 2026",
        "source": "Source: Stripe dashboard",
        "site": "northwind.dev/open",
        "logo": "https://example.com/images/logo-northwind.png"
    }
}'
```

## Make it yours

accent and theme change per request. For anything more, copy the template into your account: you get an ordinary HTML template with the same fields that you can edit in the dashboard or through the API. If the slug is free on your account, the copy takes it — your integrations switch to your version without changing a line.

```bash
curl -X POST "https://shareglint.com/v1/templates/library/line-chart/copy" -H "Authorization: Bearer sk_live_YOUR_KEY"
```
