Skip to content

dashboards/<id>.yaml ​

One file for each dashboard. The name of the file is the id of the dashboard. See dashboards and filters and selections.

keytypedefaultdescription
filterslist of FilterSpec[]Filter widgets, shown above the visuals.
layoutLayout
namestringrequiredThe title shown in the UI.
visualslist of Visual[]

FilterSpec ​

keytypedefaultdescription
defaultRelativeWindowA date_range's selection when the dashboard is opened: a window relative to now, such as { last: 7, unit: day }. It moves as time passes; a viewer can change or clear it.
fieldstringrequireddataset.field.
measurestringA metric shown beside each value instead of its row count, computed for that value under the rest of the selection (OEE per line).
widgetFilterWidgetlist

Layout ​

keytypedefaultdescription
columnsinteger12
row_heightinteger80Height of one grid row, in pixels.

Visual ​

keytypedefaultdescription
acrosslist of DimensionRefPivot tables: the dimensions along the top, their values as columns.
atGridPositionrequired
comparestringKPI tiles: a second metric shown as the comparison.
descriptionstringWhat it shows, in a sentence: under its title, and for agents.
dimensionslist of DimensionRef
formatmap of stringHow each metric shows in this visual, by the name of the metric: { revenue: compact }. It replaces the format of the metric here. It changes only what shows on the screen, not the value.
idstringrequiredUnique within the dashboard.
limitinteger
metricslist of stringMetrics by name. A filter has none. A table without metrics shows each combination of its dimensions that the data has.
on_brushBrushActionLine charts: what brushing the time axis does.
on_clickClickActionBars and table rows: what a click does.
sortSort
titlestringWhat its header says; made from its metrics and dimensions when left out.
totalsbooleanPivot tables: a total row and a total column.
typeVisualTyperequired

RelativeWindow ​

Whole periods relative to now: the last ones of unit, ending with the current one, or ago periods before it. { last: 7, unit: day } is today and the six days before it; { last: 1, unit: month, ago: 1 } is last month. Periods start where time grains do (weeks on Monday), in UTC.

keytypedefaultdescription
agointeger0
lastintegerrequired
unitWindowUnitrequired

FilterWidget ​

valuedescription
listA searchable list of values.
date_rangeA from/to range, for time fields.
treeAn expandable tree, for a dataset's hierarchy field (the default for one).
searchA text box, for a string field: the rows whose value contains what is typed are selected, ignoring the case of ASCII letters.

DimensionRef ​

A dimension: dataset.field, or a time field at a grain.

One of:

  • string
  • object with field, grain

GridPosition ​

keytypedefaultdescription
hintegerrequired
wintegerrequired
xintegerrequired
yintegerrequired

BrushAction ​

Type: select_range.

ClickAction ​

Type: select.

Sort ​

keytypedefaultdescription
bystringrequiredA metric or a dimension of the visual.
descbooleanfalse

VisualType ​

valuedescription
kpiMetrics as large numbers, with no dimensions. compare adds a second metric and the change from it.
barBars: one dimension, one or more metrics. A click selects a bar, a drag several.
lineA line over one dimension, usually a time field with a grain, with one or two metrics. A drag across it selects a range.
tableRows of dimensions and metrics, sortable. Without metrics: the combinations of the dimensions there are.
pieSlices of a whole: one dimension, one metric. The largest limit slices (8 when not given, 12 at most); for a sum or a count, the rest as one more slice. A click selects a slice.
scatterPoints by one dimension: the first metric across, the second up, a third (if any) as each point's size. limit points (1000 when not given, 5000 at most). A click selects a point, a drag the points in its rectangle.
heatmapA grid of cells by two dimensions (across, up), each coloured by one metric: weekday by hour, region by category. limit cells (2000 when not given, 10000 at most). A click selects both of a cell's values, a drag the values in its rectangle.
pivotA pivot table: dimensions down the side (one to three), across along the top (none to two), every metric in each cell. totals adds a total row and column, computed as the metric over each, not summed: right for averages and distinct counts too.
filterThe values of one dimension as a list on the grid. A click selects a value, as in a filter on the rail. It has no metrics.
rowsThe newest rows of one table that pass the selection, newest first: a log tail. Its dimensions are the columns; limit is how many rows (100 when not given, 1000 at most). It has no metrics.

WindowUnit ​

Type: minute · hour · day · week · month · quarter · year.

reference generated from the schemas, the endpoint table and the MCP tools: just docs