Skip to Content
DashboardsOverview

Dashboards

For: everyone. If you are deciding whether to use the product, read this whole page.

ModularIoT Dashboards is for building operational dashboards, sharing them and embedding them in another application. A dashboard is a grid of widgets: numbers, bars, pies, tables and text. Each widget reads the result of a query to your data.

What it does

CapabilityWhat it means
Grid editorDrag and resize widgets on a 24-column grid. Changes save on their own.
WidgetsText, KPIs, stacked bars, bar, line, pie and gauge charts, tables and lists.
QueriesA widget reads a saved query or fixed data. SQL queries are written and tested in an editor (BigQuery) or exposed as functions (PostgREST).
FiltersText, date range and selection. A filter changes the parameters of the queries that use it.
PermissionsFour roles per scope, plus extra roles per dashboard for people or groups.
OrganizationsEach organization’s dashboards and data are kept separate.
EmbeddingShow dashboards in your application with React, a Web Component or any HTML page, including Phoenix LiveView.
Import and exportCopy a dashboard between environments as a JSON file.

The browser never receives credentials, data URLs or SQL. The dashboard names a query. The server runs it.

Typical uses

UseWidgets
Status of an operation: how many records are in each stateStacked Stat (KPI per state + 100% bar), Data Table V2
Daily or monthly trendChart v2 (lines or bars by date)
The top 10 by number of eventsChart v2 (horizontal bar)
Progress toward a goalProgress Stat, Progress
Row-by-row reviewData Table V2 with column filters and CSV export

What it does not do yet

LimitAlternative
Clicking a chart does not filter other widgets.Add a select filter to the dashboard and bind it to the parameter of the table’s query.
Single-value widgets (Stat, Stacked Stat) read only the first row of the query.Write the query so it returns one row, with one column per value.
A pie chart does not give each category a fixed color. It takes the chart’s color list (the palette or the custom colors) in row order.Use a Stacked Stat (one color per category), or bars with one series per category.
The SQL editor works only with BigQuery.With PostgreSQL, write the query as a function and publish it with PostgREST.
The widget settings panels are React components.An application that does not use React builds its own settings forms.
Maps, containers and file upload exist only in the ModularIoT app.—

Choose your path

You areYou wantStart at
Product owner or customerKnow what it does and what it does notThis page and the Widget catalog
ImplementerBuild dashboards in the UI: data, queries, widgets, filters, permissionsBuild your first dashboard
DeveloperEmbed dashboards in your application and run the serverQuickstart, then Embed a dashboard in a web page

Architecture

The browser asks the server for a dashboard and for the results of its queries. The server checks who is asking and what their role allows. Then it runs the query with credentials the browser does not see. Details in Architecture.

The three packages

Three open-source npm packages, Apache 2.0 license.

PackageVersionRole
@microboxlabs/miot-dashboard-server0.8.0Stores dashboards, checks every request and runs the queries.
@microboxlabs/miot-dashboard-ui0.1.2Draws and edits dashboards in the browser.
@microboxlabs/miot-dashboard-contract0.6.0Document format, roles, errors and the OpenAPI definition.

The server also ships as a container image and a Helm chart. See Installation.

How this guide is organized

SectionContent
Getting startedChoose a path, run the server for the first time
LearnShort pages, in order, with examples: first dashboard, queries, embedding
How-to guidesOne task: add a filter, connect BigQuery
ConceptsHow the parts work
DeploymentProduction and upgrades
ReferenceEvery widget, setting, API route and limit

Pages that use the ModularIoT UI say so in their first line with Setup: ModularIoT. Everything else applies to any application that uses the libraries.

Last updated on