# Dashboard tiles

> Compact chart forms for dense layouts, from sparklines and short charts to metric rows, bar lists and condensed tables, as single specs.

A dashboard tile is the same spec as a standalone chart, sized and stripped down for a card. This page covers the forms a spec can take in a small box. It does not build the layout around them; the grid, the headline numbers and the card surface are yours.

For a full-size chart with editorial chrome, use the [bar](/docs/comparison/bar/) or [line](/docs/change-over-time/line/) pages instead. A tile leaves out the chrome the card already supplies.

## Area sparkline

`display: "sparkline"` strips chrome, axes, legend and watermark, so a tiny trend fits next to a number you render yourself. This figure is a 56px box; sparklines are usually mounted in 36 to 56px.

```json
{
  "mark": "area",
  "data": [
    {
      "t": 0,
      "value": 4180
    },
    {
      "t": 1,
      "value": 4195.53
    },
    {
      "t": 2,
      "value": 4186.73
    },
    {
      "t": 3,
      "value": 4194.96
    },
    {
      "t": 4,
      "value": 4184.79
    },
    {
      "t": 5,
      "value": 4170.74
    },
    {
      "t": 6,
      "value": 4190.43
    },
    {
      "t": 7,
      "value": 4186.13
    },
    {
      "t": 8,
      "value": 4195.12
    },
    {
      "t": 9,
      "value": 4189.54
    },
    {
      "t": 10,
      "value": 4205.42
    },
    {
      "t": 11,
      "value": 4227.08
    },
    {
      "t": 12,
      "value": 4223.9
    },
    {
      "t": 13,
      "value": 4217.23
    },
    {
      "t": 14,
      "value": 4208.68
    },
    {
      "t": 15,
      "value": 4221.97
    },
    {
      "t": 16,
      "value": 4240.78
    },
    {
      "t": 17,
      "value": 4237.02
    },
    {
      "t": 18,
      "value": 4242.92
    },
    {
      "t": 19,
      "value": 4259.4
    },
    {
      "t": 20,
      "value": 4274.86
    },
    {
      "t": 21,
      "value": 4284.54
    },
    {
      "t": 22,
      "value": 4296.94
    },
    {
      "t": 23,
      "value": 4307.13
    },
    {
      "t": 24,
      "value": 4309.11
    },
    {
      "t": 25,
      "value": 4293.41
    },
    {
      "t": 26,
      "value": 4277.77
    },
    {
      "t": 27,
      "value": 4303.9
    },
    {
      "t": 28,
      "value": 4301.48
    },
    {
      "t": 29,
      "value": 4304.42
    },
    {
      "t": 30,
      "value": 4318.23
    },
    {
      "t": 31,
      "value": 4330.54
    },
    {
      "t": 32,
      "value": 4313.84
    },
    {
      "t": 33,
      "value": 4306.72
    },
    {
      "t": 34,
      "value": 4329.22
    },
    {
      "t": 35,
      "value": 4315.59
    },
    {
      "t": 36,
      "value": 4346.12
    },
    {
      "t": 37,
      "value": 4343.66
    },
    {
      "t": 38,
      "value": 4330.2
    },
    {
      "t": 39,
      "value": 4348.42
    }
  ],
  "encoding": {
    "x": {
      "field": "t",
      "type": "ordinal"
    },
    "y": {
      "field": "value",
      "type": "quantitative"
    }
  },
  "display": "sparkline"
}
```

## Line sparkline

The same display setting works on a line mark. Without a color, a sparkline takes the trend color: positive when the series rises, negative when it falls. An explicit `stroke` sets your own color instead.

```json
{
  "mark": {
    "type": "line",
    "stroke": "#0e7490"
  },
  "data": [
    {
      "t": 0,
      "value": 1965
    },
    {
      "t": 1,
      "value": 1970.2
    },
    {
      "t": 2,
      "value": 1979.27
    },
    {
      "t": 3,
      "value": 1991.22
    },
    {
      "t": 4,
      "value": 1980.98
    },
    {
      "t": 5,
      "value": 1989.94
    },
    {
      "t": 6,
      "value": 1976.13
    },
    {
      "t": 7,
      "value": 1966.94
    },
    {
      "t": 8,
      "value": 1954.9
    },
    {
      "t": 9,
      "value": 1965.69
    },
    {
      "t": 10,
      "value": 1958.84
    },
    {
      "t": 11,
      "value": 1946.94
    },
    {
      "t": 12,
      "value": 1945.96
    },
    {
      "t": 13,
      "value": 1943.01
    },
    {
      "t": 14,
      "value": 1939.17
    },
    {
      "t": 15,
      "value": 1940.41
    },
    {
      "t": 16,
      "value": 1936.07
    },
    {
      "t": 17,
      "value": 1922.35
    },
    {
      "t": 18,
      "value": 1917.34
    },
    {
      "t": 19,
      "value": 1904.07
    },
    {
      "t": 20,
      "value": 1893.73
    },
    {
      "t": 21,
      "value": 1903.55
    },
    {
      "t": 22,
      "value": 1900.92
    },
    {
      "t": 23,
      "value": 1893.69
    },
    {
      "t": 24,
      "value": 1901.29
    },
    {
      "t": 25,
      "value": 1901.8
    },
    {
      "t": 26,
      "value": 1909.85
    },
    {
      "t": 27,
      "value": 1896.85
    },
    {
      "t": 28,
      "value": 1906.13
    },
    {
      "t": 29,
      "value": 1905.14
    },
    {
      "t": 30,
      "value": 1910.64
    },
    {
      "t": 31,
      "value": 1908.37
    },
    {
      "t": 32,
      "value": 1919.41
    },
    {
      "t": 33,
      "value": 1928.89
    },
    {
      "t": 34,
      "value": 1927.97
    },
    {
      "t": 35,
      "value": 1931.79
    },
    {
      "t": 36,
      "value": 1937.08
    },
    {
      "t": 37,
      "value": 1940.71
    },
    {
      "t": 38,
      "value": 1930.05
    },
    {
      "t": 39,
      "value": 1926.72
    }
  ],
  "encoding": {
    "x": {
      "field": "t",
      "type": "ordinal"
    },
    "y": {
      "field": "value",
      "type": "quantitative"
    }
  },
  "display": "sparkline"
}
```

## A short chart

A chart's container height decides what it keeps. Below 150px the engine drops gridlines by default, below 200px it drops the axes, and a title still renders from 100px. This tile is 180px, so it shows the title and the columns with no axes. An explicit `axis` on a channel keeps its axis at any size. `watermark: false` leaves the brand band for the one hero chart on a dashboard.

```json
{
  "mark": "bar",
  "data": [
    {
      "month": "Jan",
      "jobs": 353
    },
    {
      "month": "Feb",
      "jobs": 275
    },
    {
      "month": "Mar",
      "jobs": 303
    },
    {
      "month": "Apr",
      "jobs": 175
    },
    {
      "month": "May",
      "jobs": 272
    },
    {
      "month": "Jun",
      "jobs": 206
    },
    {
      "month": "Jul",
      "jobs": 114
    },
    {
      "month": "Aug",
      "jobs": 142
    },
    {
      "month": "Sep",
      "jobs": 254
    },
    {
      "month": "Oct",
      "jobs": 12
    },
    {
      "month": "Nov",
      "jobs": 227
    },
    {
      "month": "Dec",
      "jobs": 256
    }
  ],
  "encoding": {
    "x": {
      "field": "month",
      "type": "nominal"
    },
    "y": {
      "field": "jobs",
      "type": "quantitative"
    }
  },
  "watermark": false,
  "chrome": {
    "title": "Payroll additions, 2024"
  }
}
```

## A metrics row

`metrics` renders a row of label and value cells between the subtitle and the plot, tied to the chart below it. Use it when the numbers summarize that chart. For headline numbers that belong to no single chart, render plain HTML cards beside it.

```json
{
  "mark": {
    "type": "area",
    "stroke": "#0e7490",
    "strokeWidth": 2
  },
  "data": [
    {
      "date": "2023-01-01",
      "price": 19.52
    },
    {
      "date": "2023-02-01",
      "price": 23.19
    },
    {
      "date": "2023-03-01",
      "price": 27.75
    },
    {
      "date": "2023-04-01",
      "price": 27.73
    },
    {
      "date": "2023-05-01",
      "price": 37.8
    },
    {
      "date": "2023-06-01",
      "price": 42.27
    },
    {
      "date": "2023-07-01",
      "price": 46.7
    },
    {
      "date": "2023-08-01",
      "price": 49.32
    },
    {
      "date": "2023-09-01",
      "price": 43.47
    },
    {
      "date": "2023-10-01",
      "price": 40.75
    },
    {
      "date": "2023-11-01",
      "price": 46.74
    },
    {
      "date": "2023-12-01",
      "price": 49.49
    },
    {
      "date": "2024-01-01",
      "price": 61.49
    },
    {
      "date": "2024-02-01",
      "price": 79.07
    },
    {
      "date": "2024-03-01",
      "price": 90.31
    },
    {
      "date": "2024-04-01",
      "price": 86.36
    },
    {
      "date": "2024-05-01",
      "price": 109.58
    },
    {
      "date": "2024-06-01",
      "price": 123.49
    },
    {
      "date": "2024-07-01",
      "price": 116.97
    },
    {
      "date": "2024-08-01",
      "price": 119.32
    },
    {
      "date": "2024-09-01",
      "price": 121.4
    },
    {
      "date": "2024-10-01",
      "price": 132.72
    },
    {
      "date": "2024-11-01",
      "price": 138.2
    },
    {
      "date": "2024-12-01",
      "price": 134.25
    },
    {
      "date": "2025-01-01",
      "price": 120.04
    },
    {
      "date": "2025-02-01",
      "price": 124.89
    },
    {
      "date": "2025-03-01",
      "price": 108.36
    },
    {
      "date": "2025-04-01",
      "price": 108.9
    },
    {
      "date": "2025-05-01",
      "price": 135.11
    },
    {
      "date": "2025-06-01",
      "price": 157.97
    },
    {
      "date": "2025-07-01",
      "price": 177.85
    },
    {
      "date": "2025-08-01",
      "price": 174.16
    },
    {
      "date": "2025-09-01",
      "price": 186.57
    },
    {
      "date": "2025-10-01",
      "price": 202.48
    },
    {
      "date": "2025-11-01",
      "price": 176.99
    },
    {
      "date": "2025-12-01",
      "price": 186.5
    }
  ],
  "encoding": {
    "x": {
      "field": "date",
      "type": "temporal",
      "axis": {
        "tickCount": 4
      }
    },
    "y": {
      "field": "price",
      "type": "quantitative",
      "axis": {
        "title": "Share price",
        "format": "$,.0f"
      },
      "scale": {
        "zero": false
      }
    }
  },
  "metrics": [
    {
      "label": "Close",
      "value": "$186.50"
    },
    {
      "label": "52-wk high",
      "value": "$202.48"
    },
    {
      "label": "52-wk low",
      "value": "$108.36"
    },
    {
      "label": "3-yr return",
      "value": "+855%",
      "delta": "9.6×",
      "deltaTone": "up"
    }
  ],
  "labels": {
    "density": "none"
  },
  "chrome": {
    "title": "NVIDIA at a glance",
    "subtitle": "NVDA monthly close with headline stats, Jan 2023 to Dec 2025"
  }
}
```

## A bar list in a card

A `barlist` spec is the densest way to show a ranked list in a tile: inline bars and no axes. `barHeight` thins the bars and `watermark: false` keeps the card clean.

```json
{
  "type": "barlist",
  "data": [
    {
      "language": "Python",
      "pct": 23.4,
      "category": "general"
    },
    {
      "language": "Java",
      "pct": 17.1,
      "category": "general"
    },
    {
      "language": "JavaScript",
      "pct": 14.9,
      "category": "web"
    },
    {
      "language": "C/C++",
      "pct": 11.2,
      "category": "systems"
    },
    {
      "language": "C#",
      "pct": 8.6,
      "category": "general"
    },
    {
      "language": "Go",
      "pct": 5.8,
      "category": "systems"
    },
    {
      "language": "TypeScript",
      "pct": 5.3,
      "category": "web"
    },
    {
      "language": "Rust",
      "pct": 4.1,
      "category": "systems"
    }
  ],
  "encoding": {
    "label": {
      "field": "language",
      "type": "nominal"
    },
    "value": {
      "field": "pct",
      "type": "quantitative",
      "format": ".1f"
    },
    "color": {
      "field": "category",
      "type": "nominal"
    }
  },
  "barHeight": 8,
  "watermark": false,
  "chrome": {
    "title": "Top languages",
    "subtitle": "Language popularity index, % share"
  }
}
```

## A condensed table

`density: "condensed"` takes a table to 40px rows, and a short row count keeps it from growing a second scrollbar inside a card. Tables resolve the watermark on their own, so set `watermark: false` explicitly. Delta and sparkline columns fit more into each row.

```json
{
  "type": "table",
  "data": [
    {
      "ticker": "AAPL",
      "name": "Apple",
      "sector": "Technology",
      "price": 189.84,
      "ytdChange": 48.2,
      "trend": [
        142,
        155,
        165,
        170,
        178,
        185,
        190,
        189
      ],
      "flows": [
        3,
        6,
        -2,
        8
      ]
    },
    {
      "ticker": "MSFT",
      "name": "Microsoft",
      "sector": "Technology",
      "price": 378.91,
      "ytdChange": 57.8,
      "trend": [
        240,
        275,
        295,
        310,
        330,
        345,
        365,
        379
      ],
      "flows": [
        12,
        9,
        5,
        14
      ]
    },
    {
      "ticker": "GOOGL",
      "name": "Alphabet",
      "sector": "Communication",
      "price": 141.8,
      "ytdChange": 58.3,
      "trend": [
        89,
        95,
        108,
        120,
        125,
        130,
        138,
        142
      ],
      "flows": [
        7,
        4,
        9,
        11
      ]
    },
    {
      "ticker": "AMZN",
      "name": "Amazon",
      "sector": "Consumer",
      "price": 153.42,
      "ytdChange": 82.6,
      "trend": [
        84,
        98,
        105,
        112,
        128,
        135,
        145,
        153
      ],
      "flows": [
        10,
        8,
        13,
        20
      ]
    },
    {
      "ticker": "NVDA",
      "name": "NVIDIA",
      "sector": "Technology",
      "price": 495.22,
      "ytdChange": 239,
      "trend": [
        146,
        230,
        280,
        320,
        390,
        420,
        470,
        495
      ],
      "flows": [
        40,
        55,
        62,
        88
      ]
    }
  ],
  "columns": [
    {
      "key": "ticker",
      "label": "Ticker"
    },
    {
      "key": "price",
      "label": "Price",
      "format": "$,.2f"
    },
    {
      "key": "ytdChange",
      "label": "YTD",
      "format": ".1f",
      "delta": true
    },
    {
      "key": "trend",
      "label": "8-week trend",
      "sparkline": {
        "type": "line",
        "domain": "row"
      }
    }
  ],
  "density": "condensed",
  "watermark": false,
  "chrome": {
    "title": "Watchlist"
  }
}
```

## Fields that matter

| Field | What it does |
| --- | --- |
| `display: "sparkline"` | Strips chrome, axes, legend and watermark for a tiny trend. |
| `mark.stroke` | Sets the line or area color explicitly. |
| `watermark` | `false` hides the brand band on tiles that would otherwise show it. |
| `chrome.title` | A one-line label is often enough for a supporting tile. |
| `metrics` | A row of `label`, `value` and optional `delta` cells above the plot. |
| `barHeight`, `maxItems` | Bar thickness in pixels and row limit on a bar list. |
| `density` | `"condensed"` gives a table 40px rows. |
| `encoding.*.axis` | An explicit `axis` keeps an axis that a small container would drop. |

## Related

- [Sparkline](/docs/change-over-time/sparkline/) for the line form outside a tile.
- [Bar list](/docs/comparison/bar-list/) for the ranked list on its own.
- [Data table](/docs/tables/data-table/) for the full table spec.
- [Dashboards guide](/docs/recipes/dashboards/) covers tile sizing, sparkline cards and trimmed chrome.
