# Create Sparkline

### Overview

Sparklines are tiny line charts without axes or labels. They provide a quick glance at trend direction inside tables or KPI cards.

### When to use it

* Embedding trend hints inside dashboards or status cards.
* Comparing multiple metrics in compact layouts.
* Highlighting the shape of change rather than exact numbers.

Avoid sparklines when precise values or annotations are required; use full line charts instead.

### Data requirements

* Sequential data (time or ordered stages).
* One series per sparkline; keep point counts reasonable (8–20).
* Provide context elsewhere (title, KPI text) since sparklines are minimalist.

### Style options available

| Group                  | Control       | Input type | Options      | Description                                                                |
| ---------------------- | ------------- | ---------- | ------------ | -------------------------------------------------------------------------- |
| Colors                 | Color palette | palette    | —            | Palette applied to series; sets the default colours for the chart.         |
| General → Sparkline    | Type          | select     | line, spline | Selects the exact chart variant rendered for this series (line or spline). |
| General → Sparkline    | Line width    | number     | —            | Thickness of the line or outline in pixels.                                |
| General → Sparkline    | Radius of dot | number     | —            | Radius of markers drawn on the line chart in pixels.                       |
| Title → Chart title    | Font name     | text       | —            | Font family used for titles, labels, or legend text.                       |
| Title → Chart title    | Font style    | text       | —            | Font weight or style (e.g., bold, italic).                                 |
| Title → Chart title    | Font size     | number     | —            | Font size in pixels for the selected text element.                         |
| Title → Chart title    | Font color    | color      | —            | Colour of the text shown for this element.                                 |
| Title → Chart title    | Margin bottom | number     | —            | Extra space below chart titles or subtitles in pixels.                     |
| Title → Chart subtitle | Font name     | text       | —            | Font family used for titles, labels, or legend text.                       |
| Title → Chart subtitle | Font style    | text       | —            | Font weight or style (e.g., bold, italic).                                 |
| Title → Chart subtitle | Font size     | number     | —            | Font size in pixels for the selected text element.                         |
| Title → Chart subtitle | Font color    | color      | —            | Colour of the text shown for this element.                                 |

> ✨ **Tip:** Pair a sparkline with a headline metric and delta (“+4.2% vs last month”) for immediate insight.

### Have problems or want to improve this chart type?

Ping us via <hello@chartplugin.com>.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.chartplugin.com/how-to-create-your-first-chart/create-sparkline.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
