Visualization types
{/* GENERATED FILE — do not edit. Produced by docs/scripts/generate-reference.mjs from the panel registry in src/lib/panels/ and ValueFormat in src/lib/panels/presentation.ts. */}
A panel’s viz field selects its kind. This list is generated from the
panel registry,
src/lib/panels/registry.ts,
which VizType in src/lib/ir.ts is built from: the same list is the
model’s output schema, the generation prompt’s choices, the API’s validation,
and the client’s renderers.
| Value | Notes |
|---|---|
line |
Time series as a continuous line. Requires query.timeField. |
area |
Filled time series. Requires query.timeField. |
bar |
Bars over time or across a categorical dimension. |
scatter |
Relationship between two numeric dimensions. |
stat |
A single scalar value, formatted per panel.format. Omits query.timeField. |
table |
The result rows as an HTML table. |
heatmap |
Two dimensions against a numeric intensity. |
pie |
Proportional breakdown across a small set of categories. Omits query.timeField. |
donut |
A pie with an inner radius. Omits query.timeField. |
gauge |
One value against its limits (options.min/options.max), as a dial or, with options.variant: "bar", one bar per row. Colored by options.thresholds. |
state-timeline |
Discrete states over time, one lane per entity: a span runs from a row’s time to the next row’s for the same entity. Requires query.timeField. |
status-grid |
One tile per entity (a host, a service), showing its latest value and colored by options.thresholds or, with options.state, by a discrete state. |
histogram |
A value distribution: one bar per bucket, counts summed across rows. With options.cumulative, the buckets are upper bounds with cumulative counts (a Prometheus le). |
logs |
Log lines: a time, a message and an optional level, newest first, each expandable to the rest of its row. Requires query.timeField. |
treemap |
Hierarchical share: nested rectangles sized by value, one level per options.path column, or rings with options.variant: "sunburst". |
graph |
Structure: nodes and edges drawn as a tree, as a layered directed graph where a node has several parents or edges form a cycle, or as a force-directed cloud of who is connected to whom, from one row per edge (options.source → options.target) or from path columns, with collapsible branches, arrows and network icons as symbols. |
sankey |
Flow: how much moves from where to where, as bands whose width is the volume, between nodes in stages left to right or top to bottom, from one row per edge (options.source → options.target, options.value required) or from path columns, one stage per column. Flows cannot form a cycle. |
vega |
A custom visual: a Vega-Lite spec in options.spec, drawn over the panel’s rows ("data": {"name": "rows"}). For a view no other kind draws. |
text |
Markdown in options.content: a heading, what the dashboard is for, a runbook link. Runs no query and carries no query. |
stat, table, status-grid, logs and text are drawn as HTML
and vega as a Vega view; every other kind is an ECharts chart. The options a kind takes are in
Panel options, and
Adding a panel kind says
where each one is declared.
format
Section titled “format”panel.format controls how numeric values are rendered by formatValue
(src/lib/format.ts). It is optional.
| Value |
|---|
number |
bytes |
percent |
ms |