# Poll results OG image template

Poll results the way social apps draw them: the question on a full accent background and the answers as filled bars on a white card, the winner outlined and ticked.

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

For communities, newsletters, media and survey tools sharing how a vote ended. Each option can carry its share, its votes or both; an option without a share gets one worked out from the votes, and bars are clamped to 0–100 while the text stays as you wrote it. Up to six options. Wide frames put the question beside the card; square and vertical ones put it above, as large as it fits.

## 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 |
|---|---|---|---|
| `question` | text | The question that was asked. (default: Your question?) | Tabs or spaces in 2026? |
| `options` | text | Options separated by semicolons, each as label\|share\|votes, e.g. Spaces\|58%\|7,238 votes; Tabs\|31%\|3,869 votes. Share or votes may be left out. Up to six. | Spaces\|58%\|7,238 votes; Tabs\|31%\|3,869 votes; Whatever the formatter says\|11%\|1,373 votes |
| `total_votes` | text | Total under the options, e.g. 12,480 votes. | 12,480 votes |
| `status` | text | Label in the pill at the top, e.g. Final results. | Final results |
| `source` | text | Who ran the poll and when, e.g. Poll by @northwind · Oct 2026. | Poll by @northwind · Oct 2026 |
| `logo` | image URL | Logo in the pill; without it a small square mark is shown. | https://example.com/images/logo-northwind.png |
| `accent` | colour | Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. (default: #6366f1) | #6366f1 |
| `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": "poll-results",
    "modifications": {
        "question": "Tabs or spaces in 2026?",
        "options": "Spaces|58%|7,238 votes; Tabs|31%|3,869 votes; Whatever the formatter says|11%|1,373 votes",
        "total_votes": "12,480 votes",
        "status": "Final results",
        "source": "Poll by @northwind · Oct 2026",
        "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/poll-results/copy" -H "Authorization: Bearer sk_live_YOUR_KEY"
```
