Docs menu

Dashboards

A dashboard shows key figures, charts and tables from the data files of a space: CSV, TSV, JSON and Excel files. It is itself a file of the space, so it has versions like any other file and the people who can read the space’s files can open it. This page explains how to get one, what it can show and how to keep its figures current.

What a dashboard is

A dashboard is a file whose name ends in .ivy-dashboard.yaml. It names the data files it reads (its sources), what to do with their rows, and the widgets that show the result. Opening the file shows the dashboard; Open with… opens the file itself in the code editor.

A dashboard always shows the current version of its source files. It doesn’t query other services such as a CRM or an accounting system while you look at it: to show their data, have a flow write it to a file of the space first (see Keep it up to date).

Each person sees the data with their own access: a widget whose source file they may not read shows an error instead of the data.

Ask the assistant for one

The quickest way is to ask the assistant in the space, for example “Make a dashboard of Reports/sales.csv with revenue by month and by region”. It reads the file’s columns, writes the dashboard file, checks it and corrects what the check finds before it tells you where the file is.

To change a dashboard, ask again (“add a table of the ten largest deals”), or edit the file yourself.

A dashboard always opens as the dashboard. To edit its file, choose Open with… → Code: the code editor marks the file’s problems.

Write a dashboard file

Create a file whose name ends in .ivy-dashboard.yaml (see Create folders and files) and give it a title, its sources and its widgets. This dashboard reads Reports/sales.csv, whose first row is date,month,region,product,units,revenue,target:

ivy: dashboard/v1
title: Sales
description: Revenue against target, from the monthly sales export.
sources:
  sales:
    file: Reports/sales.csv
  monthly:
    file: Reports/sales.csv
    group_by: [month]
    aggregate:
      revenue: { sum: revenue }
      target: { sum: target }
    sort:
      - { column: month }
widgets:
  - type: kpi
    title: Revenue
    source: sales
    value: revenue
    compare: { column: target, label: vs target }
    format: { style: currency, currency: EUR, decimals: 0 }
  - type: line
    title: Revenue against target
    source: monthly
    x: month
    y: [revenue, target]
    format: { style: compact, date: month }
  - type: table
    title: Months
    source: monthly
    columns:
      - { column: month, label: Month, format: { date: month } }
      - { column: revenue, label: Revenue }
      - { column: target, label: Target }
    sort: { column: month, order: desc }

The dashboard file reference lists every field, its type and its default.

Layout

Widgets fill a grid of 12 columns in the order the file lists them, left to right, and start a new row when one is full. width sets how many columns a widget takes. Without it, a kpi takes 3, a line, bar or area chart 6, a pie 4, and a table or text the whole row. On a phone every widget takes the whole width, one below the other.

Sources and transforms

Each source has a name of your choice (lowercase letters, digits, - and _) and a file: a path from the top of the space. A CSV or TSV file’s first row names its columns, a JSON file is a list of objects whose keys are the columns, and for an Excel file you choose the sheet, a range of cells such as A1:F200, or a named Excel table.

A source can change its rows before the widgets show them, always in this order:

  1. filter keeps the rows that meet every condition, such as { column: region, op: eq, value: North }. The operators are eq, ne, gt, gte, lt, lte, contains and in (with a list of values).
  2. group_by makes one row for each combination of its columns, and aggregate adds columns that summarise each group: count, or sum, avg, min or max of a column. With aggregate alone, all rows become one.
  3. columns keeps only the columns it lists, sort orders the rows and limit keeps the first ones.

Several sources can read the same file. Values are read the same way everywhere: numbers such as 1234, -12.5 or 1,234.50, dates such as 2026-11, 2026-11-24 or 2026-11-24T08:00, and anything else as text.

A collection as a source

Instead of a file, a source can name a collection of the space, such as tasks. Each record is a row, with the columns id, created_at and updated_at and one column for each field of the collection. A person shows as their name, an option as its label and a list as its items joined with commas, so filter on those: { column: status, op: ne, value: Done }.

sources:
  open_tasks:
    collection: tasks
    filter:
      - { column: status, op: ne, value: Done }
    group_by: [status]
    aggregate:
      tasks: count

The records are read with your own access each time the dashboard opens or you refresh it, so a dashboard over a collection is always current and needs no flow.

Widgets

Every widget has a type. All but text also have a title and the source they show; a description adds a line under the title.

Key figures

A kpi shows one number in large type. It adds up value unless aggregate says otherwise (avg, min, max, count, first or last). compare shows the change against a column, such as a target, or, with aggregate: last and no column, against the row before. better: down shows a fall as good, for costs or waiting times.

- type: kpi
  title: Revenue last month
  source: monthly
  value: revenue
  aggregate: last
  compare: { label: vs the month before }

Line, bar and area charts

A chart draws x along the bottom and one line, bar or area for each column listed in y (up to 8). stacked: true puts the columns of y on top of each other.

- type: bar
  title: Units by region
  source: by_region
  x: region
  y: [units]

Pie charts

A pie has one slice for each row: label names it and value sizes it. donut: true draws a ring.

Tables

A table shows the rows, and people can sort it by any heading. columns chooses the columns and their headings (label), and sort sets the order it opens in.

Text

A text widget shows Markdown, such as how the figures were made or what to look at first.

Formats

format says how a widget’s numbers and dates show, in the reader’s language:

  • style: number, percent (0.25 shows as 25%), currency with a currency code such as EUR, or compact (1.2K, 3.4M);
  • decimals: digits after the decimal point, 0 to 6;
  • unit: shown after each number, such as kWh;
  • date: day, month, quarter, year or datetime.

In a table, each column can have its own format; the table’s format applies to the others.

Keep it up to date

A dashboard reads its sources each time it opens, when you come back to its window, and when you choose Refresh. A new version of a source file therefore shows without anything else to do.

To refresh the data on a schedule, have a flow write the source files: for example, a code step that exports from your CRM with save_to set to the folder of the source file. Each run writes a new version, and the dashboard shows it. Name the flow in refreshed_by, and the dashboard says which flow writes its data and when the data last changed:

ivy: dashboard/v1
title: Sales by region
refreshed_by: Flows/weekly-sales.ivy-flow.yaml
sources:
  by_region:
    file: Reports/sales.csv
    filter:
      - { column: month, op: gte, value: "2026-01" }
    group_by: [region]
    aggregate:
      revenue: { sum: revenue }
      units: { sum: units }
    sort:
      - { column: revenue, order: desc }
  by_product:
    file: Reports/sales.csv
    group_by: [product]
    aggregate:
      units: { sum: units }
widgets:
  - type: bar
    title: Revenue by region
    source: by_region
    x: region
    y: [revenue]
    format: { style: currency, currency: EUR, decimals: 0 }
  - type: pie
    title: Units by product
    source: by_product
    label: product
    value: units
    donut: true
  - type: text
    title: Notes
    markdown: Figures from the weekly CRM export, written every Monday morning.

Because the dashboard is a file, every change to it is a version too. To undo one, see Go back to an earlier version.

Fix problems

Ivy checks a dashboard file each time it is saved: its fields, and whether its source files and the columns it uses exist. The assistant sees the problems at once. Each problem has a code:

Code What it means and what to do
source_unknown A widget’s source isn’t one of the names under sources. Correct the name or add the source.
source_missing There is no file at the source’s path, or you may not read it. Check the path from the top of the space. With refreshed_by this is only a warning: the file shows once the flow writes it.
file_scanning The source file is still being checked for malware. It shows once the scan is done.
source_unavailable The source file failed the malware scan or couldn’t be scanned, so it can’t be read.
source_too_large The source file is larger than 20 MB. Have it written with fewer rows, such as one per day or per group.
source_invalid The file can’t be read as data: a CSV or TSV file without a first row of column names, or a JSON file that isn’t a list of objects.
column_missing A column a transform or widget names isn’t in the source. After group_by and aggregate, a source has only those columns, and after columns only the ones listed.
column_type A chart, pie or key figure needs numbers, and the column holds text or dates. Name a column of numbers, or count rows with aggregate.
reference_missing refreshed_by doesn’t name a flow file of the space that you may read.
collection_missing The space has no collection by the source’s collection name. Check the name, or apply the collection’s file first.
collection_detached A warning: the collection’s file is in the trash. Restore it, or name another collection.
field_missing A transform names a field the collection doesn’t have. The message lists its columns.

Other codes, such as invalid_value or unknown_key, mean a field itself is wrong; the message says which, and the dashboard file reference lists what each field accepts.

When a dashboard is open, a widget that can’t show its data says why in its place, and the rest of the dashboard still shows.

Read a chart as a table

Every chart has a text summary for screen readers, with its series, its range and its highest and lowest values. Show as table under a chart shows the numbers behind it as a table. Lines and series differ in shape as well as colour, and key figures are read as text.

Limits

  • A source file can be up to 20 MB. A source may have up to 10,000 rows unless its max_rows allows more, up to 100,000; with more rows, its widgets show an error. The same goes for a collection’s records.
  • A dashboard has up to 20 sources and 50 widgets, and a chart up to 8 columns in y.
  • The check reads the start of large CSV and TSV files to find their columns. The columns of Excel files are checked when the dashboard opens, and a problem shows on the widget.