Documentation/Features/Dashboards

Dashboards

Combine charts, add filters that drive every chart at once, and share the result with your team or the world.

Dashboard Features

Charts from SQL

Every chart is a query. Mix any of the 15 chart types on one dashboard.

Drag & drop layout

Resize and rearrange charts on a 12-column grid.

Dashboard filters

Select, multi-select, date, datetime, date range, text and number range filters that drive every chart at once.

Template variables

Put {{variable}} placeholders in chart SQL, with inline defaults like {{status:'active'}}.

Auto-refresh

Pick a refresh interval on any dashboard or public link to keep wallboards live.

Public links

Share a read-only link, with an optional password and expiry date. Revoke it any time.

Spaces

Bundle several dashboards behind one share link, shown as tabs.

CSV export

Viewers can export any chart to CSV, including on public links, with filters applied.

Manage access

Grant individual teammates edit access to a dashboard, or share it with your organisation.

Edit history

See who changed a dashboard and when.

Ownership transfer

Hand a dashboard to someone else when people change teams or leave.

Collections

Organise dashboards and saved queries into nested collections.

Launch countdown

Give a public dashboard an event name and go-live time, and viewers see a countdown until it opens.

Duplicate

Copy a dashboard with all its charts as a starting point for a new one.

Creating a Dashboard

  1. 1Navigate to Dashboards in the sidebar
  2. 2Click Create Dashboard
  3. 3Give your dashboard a name and description
  4. 4Click Add Chart to add visualizations
  5. 5Arrange charts by dragging them to the desired position

Prefer to describe it? Connect Claude through the MCP server and it can create the dashboard, write each chart's SQL and lay it out for you.

Filters

A dashboard filter can drive charts in two ways, and you can mix both on one dashboard.

Automatic

Map the filter to a column and DBCraft adds the condition to each chart's query. One filter can target a different table and column on each chart, and the condition lands in the right place inside subqueries and CTEs.

Template variables

Write the placeholder yourself for full control. Values are inserted as typed, quoted SQL literals. Date ranges become {{name_start}} and {{name_end}}, number ranges {{name_min}} and {{name_max}}.

SELECT date_trunc('day', created_at) AS day,
       count(*) AS orders
FROM orders
WHERE status = {{status:'paid'}}
  AND created_at BETWEEN {{period_start}} AND {{period_end}}
GROUP BY 1
ORDER BY 1

When the status filter is empty, the default after the colon is used.

Sharing

  • Public links run every chart on the server and send only the results, so viewers never see the SQL or which data source it came from. Filters work on public links too. Add a password (stored as an Argon2id hash) and an expiry if you need them.
  • Spaces put several dashboards behind one link, each on its own tab. The dashboards inside do not need their own public links.
  • Inside your organisation, share a dashboard with everyone or grant edit access to specific people.

Dashboards cannot be framed by other sites by default. To embed one, widen DBCRAFT__SECURITY__FRAME_ANCESTORS to the origins that should be allowed.

Related Guides