Sparkline
A tiny line with no axes that sits inline in a stat, a sentence or a table cell.
| Name | Type | What it does |
|---|---|---|
sparkline(values, options) | component | values: an array of numbers. Sized like the text around it |
{ width, height } | modifier | Option: its proportions (default 120 × 32) |
Inside a stat
$48,210 ↑ 12% vs last month
<div class="stat">
<span class="meta">Revenue</span>
<span class="stat-value">$48,210 <gl-chart type="spark" data='[3,5,4,7,6,9,8,12,11,15]' style="display: inline-block"></gl-chart></span>
<span class="stat-desc">↑ 12% vs last month</span>
</div>