> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bludia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Dashboards

> Build dashboards in Bludia: KPIs, charts, tables, maps and more on a drag-and-drop grid, with dashboard-wide filters, drill-down and export.

A **dashboard** is a page of widgets that summarize your project's data at a glance. A project can have several dashboards; each one keeps its own layout and filters.

## Widget types

> [card] KPI
>
> A headline number with the change from the previous period (like for like: *this month so far vs the same days last month*), a sparkline, and colored thresholds.

> [card] Charts
>
> Line, area, bar (grouped, stacked, horizontal), combo (bars + lines, optional second axis), pie / donut, scatter, funnel, gauge and heatmap.

> [card] Table
>
> Records or grouped totals. Sortable, paginated, with totals, conditional colors and click-to-open records.

> [card] Map
>
> Records with latitude/longitude as markers, clusters or a heat layer, or regions colored by a value (from a GeoJSON URL). No API key needed.

> [card] Lists
>
> The latest records of a collection, or the activity log (created, updated, deleted, by whom).

> [card] Progress, gauge, countdown
>
> How close a value is to a target, a value on a dial, or the time left until a date.

> [card] Content
>
> Markdown text, an image, or an embedded `https://` page.

> [card] Filter
>
> A date range or field-value picker placed on the grid that filters the other widgets.

## Data

Every data widget reads either a **collection** or a **saved report**, through the same engine as [reports](https://docs.bludia.com/reports/overview.md). Queries are always scoped to the project, and a widget only shows data the viewer's role may see: a role needs `{collection}.view` for a collection source, or `report.{report}.view` for a report source.

| Setting | Options |
| :- | :- |
| Values | `count`, `count_distinct`, `sum`, `avg`, `min`, `max`; several values make several series |
| Group by | Up to two fields. Date fields group by hour, day, week, month, quarter or year |
| Filters | `eq`, `neq`, `gt`, `gte`, `lt`, `lte`, `between`, `in`, `not_in`, `contains`, `starts_with`, `ends_with`, `is_null`, `not_null`, `is_true`, `is_false`, `in_last_days`, `in_this`, `in_previous` |
| Sort & limit | By a value, a grouping or a field; up to 1000 rows |
| Format | Number, currency or percent; decimals; prefix / suffix; compact (1.2K); date formats |
| Freshness | Auto-refresh (off to 1 hour) and a server cache (off to 1 hour) |

Fields are stored by their permanent id, so renaming a field never breaks a widget. A field used by a widget cannot be removed until the widget stops using it.

## Dashboard filters

Add filters from **⋯ → Dashboard filters**, or place a **Filter** widget on the grid.

* A **date range** (presets like *Last 30 days*, *Month to date*, or a custom range) applies to each widget's date field (`created_at` unless you pick another).
* A **field value** filter applies to widgets that read the same collection.

Each widget can opt out with **Follow dashboard filters**. Viewers' choices are remembered on their device.

## Build a dashboard

**1. Edit**

Open the dashboard and select **Edit dashboard**.

**2. Add widgets**

Select **Add widget**, pick a type, then choose its data, display and format. The preview runs your settings live.

**3. Arrange**

Drag widgets by their header and pull an edge to resize; they snap to the 12-column grid. Switch to **Tablet** or **Mobile** to arrange those screens separately. Lock a widget to keep it in place.

**4. Save**

Select **Save**. Until then, **Undo** / **Redo** (Ctrl/⌘ Z) and **Cancel** work on everything you changed.

## Interactions

* **Tooltips** on every chart.
* **Drill-down**: click a bar, slice, point or region to list the records behind it, then open any record.
* **Export** a widget's data as CSV (up to 1000 rows) or the widget as a PNG image.
* **Full screen** view of a single widget.

## Example: sales overview

| Widget | Type | Config |
| :- | :- | :- |
| Revenue | KPI | `sum(total)` on `orders`, compare *this month vs last month*, sparkline |
| Revenue by month | Combo | `sum(total)` as bars, `count` as a line, grouped by `created_at` by month |
| Orders by region | Map | Regions from a GeoJSON URL, `count` grouped by `region` |
| Pipeline | Funnel | `count` on `deals`, grouped by `stage` |
| Top customers | Table | `sum(total)` grouped by `customer`, sorted descending, 10 rows |
| Period | Filter | Date range, default *Last 90 days* |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.