--- title: Introduction project: Dashboard version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/guides/introduction/ updated: 2026-11-20T06:40:32.732Z --- # Introduction > What Total.js Dashboard is, how views, reports and dashboards fit together, and where to start. > **Note:** Total.js Dashboard is available only with a [Total.js Enterprise](https://www.totaljs.com/enterprise/) subscription. See the [Dashboard page](https://www.totaljs.com/dashboard/) on totaljs.com. Total.js Dashboard turns the data in your PostgreSQL database into dashboards. You describe the data once, build reports on it, and then place charts, lists and key figures on a grid that you arrange with the mouse. ![The Sales overview dashboard with a last value, a trend, a donut chart, a list, a line chart and a bar chart](/files/JaswxN44861f.webp) ## How it works Dashboard has three building blocks. Each one uses the one before it: 1. **Views.** A view is an SQL query plus the list of columns that reports may use. See [Views](../views/). 2. **Reports.** A report uses one view. It picks the fields, groups and totals them, filters and sorts the rows. A report with **Enable chart view** turns its rows into chart data. See [Reports](../reports/) and [Chart data](../chart-data/). 3. **Dashboards.** A dashboard is a grid of widgets. Each widget shows the chart data of one or more reports. See [Create a dashboard](../create-dashboard/). Views and reports work as in [Total.js OpenReports](/openreports/1-0/guides/introduction/), so the OpenReports pages about them apply here too. Dashboard only reads the data that your views select. It keeps its own views, reports and dashboards in a file on the server. See [Back up Dashboard](../backups/). ## What to read next 1. [Install Dashboard](../install/). 2. [Sign in for the first time](../first-sign-in/). 3. Describe your data: [Views](../views/). 4. Build reports with chart data: [Reports](../reports/) and [Chart data](../chart-data/). 5. Put them on a dashboard: [Create a dashboard](../create-dashboard/) and [Add widgets](../add-widgets/). 6. Before other people use it, read [Run in production](../production/). --- title: Install Dashboard project: Dashboard version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/guides/install/ updated: 2026-11-20T06:40:32.732Z --- # Install Dashboard > Get the code, install the dependencies, connect PostgreSQL and start Dashboard. > **Note:** Total.js Dashboard is available only with a [Total.js Enterprise](https://www.totaljs.com/enterprise/) subscription. See the [Dashboard page](https://www.totaljs.com/dashboard/) on totaljs.com. Dashboard is a Node.js app. You run it on your own computer or server. ## Requirements - [Node.js](https://nodejs.org) 20 or newer. - PostgreSQL 15 or newer, with the data you want to show. - A browser with internet access. The screens and the chart libraries load from public CDNs. ## Get the code Total.js gives the source code of Dashboard to customers with a [Total.js Enterprise](https://www.totaljs.com/enterprise/) license. See the [Dashboard page](https://www.totaljs.com/dashboard/) on totaljs.com. Unpack it into a folder of its own, for example `dashboard`. ## Install and start **1.** Open the folder and install the dependencies: ```bash cd dashboard npm install ``` **2.** Open the file `config` in the folder and set `database` to the connection string of your PostgreSQL database: ```text database : postgres://user:password@localhost:5432/sales ``` **3.** Start Dashboard: ```bash npm start ``` **4.** Open `http://localhost:8000/` in your browser. See [Sign in for the first time](../first-sign-in/). Dashboard keeps running until you stop it with Ctrl+C in the terminal. ## Use another port `npm start` uses port 8000. To use another port, start Dashboard with Node.js and pass the port: ```bash node index.js 8080 ``` ## Next steps - Every key of the `config` file: [Configuration](../../reference/configuration/). - Before other people use it: [Run in production](../production/). --- title: Sign in for the first time project: Dashboard version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/guides/first-sign-in/ updated: 2026-11-20T06:40:32.732Z --- # Sign in for the first time > Sign in with the first account, change its credentials and find your way around the screen. Dashboard creates one account the first time it starts, with a random user name and password. ## Sign in 1. Open Dashboard in your browser, for example `http://localhost:8000/`. 2. The sign-in page shows the box **Default account** with the **User name** and the **Password**. Select **Fill in the form**, or type them yourself. 3. Select **Sign in**. The box **Default account** disappears after the first sign-in. Change the credentials right away, so that only you know them. ![The sign-in page with User name, Password and Sign in](/files/JaswxG3z860f.webp) ## Change the credentials 1. Select your initials in the top right corner, then **Change credentials**. 2. Enter your **Name**, a **Login** and a new **Password**. Keep the password field empty to keep the current password. 3. Select **SUBMIT**. Other open sessions are signed out. Your own session stays open. See [Your account](../account/). ## Find your way around The bar on the left opens the screens of Dashboard: | Screen | What you do there | |---|---| | **Dashboard** | Look at your dashboards and arrange their widgets. | | **Reports** | Create and edit [reports](../reports/). | | **Views** | Describe the data with [views](../views/). | | **Settings** | The name of the app. See [Settings](../settings/). | The buttons at the top right belong to the open screen. In **Dashboard**, the button **Options** holds the commands for dashboards. --- title: Views project: Dashboard version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/guides/views/ updated: 2026-11-20T06:40:32.732Z --- # Views > Describe the data that reports can use with an SQL query and a list of fields. A view tells Dashboard which data reports may use: an SQL query on your PostgreSQL database and one entry for each column that people can pick. You write views in the **Views** screen. ![The Views screen with one view named Sales](/files/Jaswxf4J860f.webp) ## Create a view 1. Select **Views** in the bar on the left. 2. Select **Create**. The **View specification** editor opens. 3. Enter the view as JSON, then select **SUBMIT**. This view reads a table of sales: ```json { "id": "sales", "name": "Sales", "sql": "SELECT region, product, amount, dtcreated FROM demo_sales", "fields": [ { "column": "region", "name": "Region", "type": "string", "group": true }, { "column": "product", "name": "Product", "type": "string", "group": true }, { "output": "@", "column": "amount", "name": "Amount", "type": "number", "format": 2 }, { "column": "dtcreated", "name": "Date", "type": "date", "group": true } ] } ``` The view card appears in **Views**, and the view is ready to use in [reports](../reports/). ## Edit or remove a view Select the gear icon on the card of a view, then **Edit** or **Remove**. Removing a view also removes every report that uses it. ## More about views Views work as in OpenReports: - [Create a view](/openreports/1-0/guides/create-view/): how the SQL and the fields work, with tips. - [Edit and remove views](/openreports/1-0/guides/edit-views/): how to change a field without breaking reports. - [View definition](/openreports/1-0/reference/view-definition/): every key of the JSON. --- title: Reports project: Dashboard version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/guides/reports/ updated: 2026-11-20T06:40:32.732Z --- # Reports > Create reports that pick, group, filter and sort the data of a view. A report takes the data of one view and shapes it. Dashboards show the data of reports, so you build a report for each chart, list or figure you want to see. ![The Reports screen with three reports in the category Sales](/files/JaswxW4C861f.webp) ## Create a report 1. Select **Reports** in the bar on the left, then **Create**. The **Create report** form opens. 2. In **Name**, enter a name, for example `Sales by region`. 3. In **View**, choose the view the report reads. 4. Choose the **Group**, **Fields**, **Filter** and **Sort** of the report. 5. To use the report on a dashboard, select **Enable chart view** and fill in the chart settings. See [Chart data](../chart-data/). 6. Select **SUBMIT**. The form also has **Private report**, **Category**, **Icon**, **Color**, **Note** and **Limit output to**. Reports with the same **Category** appear together under its name. The parts of the form work as in OpenReports: - [Fields and sorting](/openreports/1-0/guides/fields-and-sorting/) - [Group and total](/openreports/1-0/guides/group-and-total/) - [Filter rows](/openreports/1-0/guides/filters/) and [Filter types](/openreports/1-0/reference/filter-types/) - [Dynamic filters](/openreports/1-0/guides/dynamic-filters/) ## Work with a report Select the card of a report to see its data, or select its gear icon for more: ![The menu of a report: Browse data, Show chart, Clone, Edit and Remove](/files/JaswxX4D860f.webp) | Command | What it does | |---|---| | **Browse data** | Opens the rows of the report. You can copy them or download them as CSV or XLSX. See [Browse and export data](/openreports/1-0/guides/browse-data/). | | **Show chart** | Opens the chart of a report with **Enable chart view**. | | **Clone** | Makes a copy named after the report with `(cloned)` at the end. | | **Edit** | Opens the form of the report. | | **Remove** | Removes the report. | Use **Search** above the cards to find a report by its name. --- title: Chart data project: Dashboard version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/guides/chart-data/ updated: 2026-11-20T06:40:32.732Z --- # Chart data > Turn a report into chart data with an X axis, a Y axis, series, decimals and a format. Widgets show the chart data of reports. A report has chart data when **Enable chart view** is selected in its form. Only these reports appear when you choose the dataset of a widget. ![The Chart settings of a report: X axis Date, Y axis Amount SUM, Decimals 2 and Format {0} EUR](/files/Jaswx83s861f.webp) ## Set up the chart data 1. In **Reports**, select the gear icon of the report, then **Edit**. 2. Select **Enable chart view**. The section **Chart settings** appears. 3. Fill in the settings below, then select **SUBMIT**. | Setting | What it does | |---|---| | **X axis** | The field for the labels, for example the date or the region. Required. | | **Y axis** | The number field for the values, for example **Amount SUM**. Required. | | **Series for** | Optional. Splits the data into one series for each value of this field, for example one line for each product. | | **Decimals** | The number of decimals of the values. | | **Format** | How a value is written. `{0}` stands for the number, so `{0} EUR` shows `61 627 EUR`. Required. | The axes offer the fields of the report, so add them to **Fields** first. ## Tips - One row of the report is one point of the chart. A grouped report usually works best: one row for each region, with the sum of its sales. See [Group and total](/openreports/1-0/guides/group-and-total/). - The order of the rows is the order of the points. Sort by the date to draw a line from the oldest to the newest month. - Widgets that show one value, such as **Last value**, start with the first row. Sort the report newest first to show the latest value first. - To check the data, select the gear icon of the report and then **Browse data**. --- title: Create a dashboard project: Dashboard version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/guides/create-dashboard/ updated: 2026-11-20T06:40:32.732Z --- # Create a dashboard > Create a dashboard and set its name, icon and colour. A dashboard is a grid of widgets with a name. You can have as many dashboards as you like. When you open **Dashboard** and no dashboard exists yet, the **Create dashboard** form opens by itself. ## Create a dashboard 1. Select **Dashboard** in the bar on the left. 2. Select **Options**, then **Create new**. 3. In **Name**, enter a name, for example `Sales overview`. 4. Optionally, choose an **Icon** and a **Color**. 5. Select **SUBMIT**. The new dashboard opens. Its name appears at the top of the screen. Now [add widgets](../add-widgets/) to it. ![The dashboard form with Name, Allow all users to see this dashboard, Read-only for all users, Icon and Color](/files/JaswxC3v860f.webp) ## The form | Setting | What it does | |---|---| | **Name** | The name at the top of the screen and in the list of dashboards. Required. | | **Allow all users to see this dashboard** | Shows the dashboard to every user of the app, not only to you. | | **Read-only for all users** | Other users can look at the dashboard but not change its widgets. Selected by default. | | **Icon** | The icon in the list of dashboards. | | **Color** | The colour of the dashboard. | The two options about users matter when several people use the app. ## Create a dashboard from the list You can also type a new name in the list of dashboards: 1. Select the name of the open dashboard at the top of the screen. 2. Type the name of the new dashboard in **Search or create new** and press Enter. ![The list of dashboards with the box Search or create new](/files/JaswxD3w861f.webp) --- title: Add widgets project: Dashboard version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/guides/add-widgets/ updated: 2026-11-20T06:40:32.732Z --- # Add widgets > Drag widgets onto a dashboard and choose the report data they show. Widgets are the charts, lists and figures of a dashboard. You drag them from the **Widgets** window onto the grid, then choose the data they show. ![The Widgets window open next to a dashboard](/files/Jaswx03k861f.webp) ## Add a widget 1. Open the dashboard. 2. Select **Options**, then **Toggle widgets**. The **Widgets** window opens. Use **Search widgets** to find one by its name. 3. Drag a widget from the window to a free place on the grid. The new widget shows **Nothing to show** until you choose its data. ## Choose the data 1. Select the gear icon in the title bar of the widget. Its settings open. 2. Select **Dataset**. A list of the reports with chart data opens. See [Chart data](../chart-data/). 3. Select a report. It appears below **Dataset**. Some widgets take up to three reports; select **Dataset** again to add more. 4. Optionally, set the other settings, for example **Refresh interval**. 5. Select **SUBMIT**. The widget loads the data. ![The settings of a widget with the report Sales by region in Dataset and Refresh interval 0](/files/Jaswx23l860f.webp) To take a report away, select the red bin icon in front of its name. ## Refresh the data A widget loads its data when the dashboard opens. **Refresh interval** reloads it every that many seconds; `0` turns it off. Every widget and its settings are described in [Widgets](../../reference/widgets/). When you are done, close the **Widgets** window with its red cross. Next: [Arrange widgets](../arrange-widgets/). --- title: Arrange widgets project: Dashboard version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/guides/arrange-widgets/ updated: 2026-11-20T06:40:32.732Z --- # Arrange widgets > Move, resize, rename and remove the widgets of a dashboard. You arrange the widgets of a dashboard with the mouse. Dashboard saves every change by itself, a moment after you make it. ## Move a widget Drag the widget by its title bar to another place on the grid. Grab the bar beside the title, not the title itself. ## Resize a widget Drag the corner at the bottom right of the widget. The widget snaps to the grid. ## Rename a widget 1. Select the title of the widget. It becomes a text box. 2. Type the new title and press Enter. A new widget is named after its type, for example **Bar chart Apex**. A clear title such as `Sales by region` helps the people who read the dashboard. ## Remove a widget 1. Select the bin icon in the title bar of the widget. 2. Confirm with **Remove**. ## Preview other screen sizes Select **Options**, then **Resize**, and choose **Large display**, **Medium display**, **Small display** or **Extra small display** to see the dashboard at that width. **Auto** goes back to the width of your window. --- title: Manage dashboards project: Dashboard version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/guides/manage-dashboards/ updated: 2026-11-20T06:40:32.732Z --- # Manage dashboards > Switch between dashboards, change their name and options, or remove them. The commands for dashboards are in **Options** at the top right of the **Dashboard** screen. ![The Options menu: Refresh, Create new, Toggle widgets, Update meta data, Remove and Resize](/files/JaswxR47860f.webp) ## Switch to another dashboard 1. Select the name of the open dashboard at the top of the screen. 2. Select another dashboard in the list, or type a part of its name to find it. The address in your browser ends with the ID of the open dashboard, so you can bookmark it. ## Change the name and options 1. Open the dashboard. 2. Select **Options**, then **Update meta data**. The **Update dashboard** form opens. 3. Change the name, the options, the icon or the colour. See [Create a dashboard](../create-dashboard/). 4. Select **SUBMIT**. ## Remove a dashboard 1. Open the dashboard. 2. Select **Options**, then **Remove**. 3. Confirm with **Remove**. The dashboard and its widgets are removed. The reports and views they used stay. ## The Options menu | Command | What it does | |---|---| | **Refresh** | Reloads the list of dashboards. | | **Create new** | Opens the form for a new dashboard. | | **Toggle widgets** | Opens the **Widgets** window. See [Add widgets](../add-widgets/). | | **Update meta data** | Changes the name, options, icon and colour. | | **Remove** | Removes the open dashboard. | | **Resize** | Shows the dashboard at the width of another screen. See [Arrange widgets](../arrange-widgets/). | --- title: Your account project: Dashboard version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/guides/account/ updated: 2026-11-20T06:40:32.732Z --- # Your account > Change your name, login and password, and sign out. Dashboard has one account. Its menu opens when you select your initials in the top right corner. ![The account menu with Change credentials and Logout](/files/Jaswww3h860f.webp) ## Change the credentials 1. Select your initials, then **Change credentials**. 2. Change the **Name**, the **Login** or the **Password**. Keep **Password** empty to keep the current one. 3. Select **SUBMIT**. All other open sessions are signed out. Your own session stays open. ## Sign out Select your initials, then **Logout**. The sign-in page opens. A session lasts one month unless you sign out. --- title: Run in production project: Dashboard version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/guides/production/ updated: 2026-11-20T06:40:32.732Z --- # Run in production > Make a Dashboard server ready for other people: release mode, credentials, HTTPS and access. Before other people use Dashboard, prepare the server. ## Change the first credentials The sign-in page shows the first account to anyone until somebody signs in. Start Dashboard where only you can reach it, sign in, and change the credentials. See [Sign in for the first time](../first-sign-in/). ## Start in release mode `npm start` runs Dashboard in debug mode, which watches the files and restarts the app when they change. On a server, start it in release mode: ```bash node index.js 8000 --release ``` Use a process manager or a system service so that Dashboard starts again after a restart of the server. ## Use HTTPS Put Dashboard behind a web server such as NGINX that handles HTTPS, and let it forward the requests to the port of Dashboard. Then people sign in over an encrypted connection. ## Limit who can reach it - Let only the people who need Dashboard reach the server, for example through a firewall or a VPN. - Give the database user in `database` read access only to the tables your views use. Dashboard only reads data. - If you turn on the [Reports API](../../reference/reports-api/), use a long random token and keep it secret. ## Back up Back up the data of Dashboard regularly. See [Back up Dashboard](../backups/). --- title: Back up Dashboard project: Dashboard version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/guides/backups/ updated: 2026-11-20T06:40:32.732Z --- # Back up Dashboard > The files that hold your views, reports, dashboards and account, and how to back them up. Dashboard keeps its own data in files in the folder `databases` of the app. Your business data stays in PostgreSQL. | File | What it holds | |---|---| | `databases/memorize_data.json` | Views, reports, dashboards with their widgets, and the settings. | | `databases/memorize_account.json` | The account: name, login and the hash of the password. | If you added your own widgets, the folder `dashboard` holds them too. See [Custom widgets](../../development/custom-widgets/). ## Make a backup 1. Stop Dashboard. 2. Copy the folder `databases` and the file `config` to a safe place. Add the folder `dashboard` if you changed or added widgets. 3. Start Dashboard again. For example: ```bash tar -czf dashboard-backup.tar.gz databases config dashboard ``` ## Restore a backup 1. Stop Dashboard. 2. Put the saved folder `databases` and the file `config` back into the folder of the app. 3. Start Dashboard. Back up PostgreSQL with its own tools, such as `pg_dump`. --- title: Settings project: Dashboard version: 1.0 section: guides language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/guides/settings/ updated: 2026-11-20T06:40:32.732Z --- # Settings > Change the name of the app in the Settings screen. The **Settings** screen holds the name of the app. ![The Settings screen with the App name field](/files/Jaswxb4G861f.webp) ## Change the name of the app 1. Select **Settings** in the bar on the left. 2. Enter the new name in **App name**. 3. Select **SUBMIT**. The name appears at the top left of every screen, on the sign-in page and as the title of the browser tab. The settings are saved with your views and reports. See [Back up Dashboard](../backups/). --- title: Configuration project: Dashboard version: 1.0 section: reference language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/reference/configuration/ updated: 2026-11-20T06:40:32.732Z --- # Configuration > The keys of the config file that you change when you install Dashboard. The file `config` in the folder of the app holds the settings that Dashboard reads when it starts. Each line is a key, a colon and a value. Lines that start with `//` are comments. Restart Dashboard after you change the file. ```text database : postgres://user:password@localhost:5432/sales autowidgetwatcher : true api : true token : 3f9c0d1e8b7a4c2f9e6d5a4b3c2d1e0f ``` | Key | Value | What it does | |---|---|---| | `database` | Connection string | The PostgreSQL database that your views read, as `postgres://user:password@host:port/database`. | | `autowidgetwatcher` | `true` or `false` | With `true`, Dashboard notices new, changed and removed files in the folder `dashboard` within a few seconds, without a restart. See [Custom widgets](../../development/custom-widgets/). | | `api` | `true` or `false` | Turns the [Reports API](../reports-api/) on. It is off when the key is missing. | | `token` | Text | The secret that programs send to use the [Reports API](../reports-api/). Use a long random value. | Keep the file private: it holds the password of your database and the token of the API. --- title: Widgets project: Dashboard version: 1.0 section: reference language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/reference/widgets/ updated: 2026-11-20T06:40:32.732Z --- # Widgets > Every built-in widget, what it shows and its settings. Every widget shows the [chart data](../../guides/chart-data/) of one or more reports. You choose them in **Dataset** in the settings of the widget. See [Add widgets](../../guides/add-widgets/). ## Charts | Widget | What it shows | Reports in Dataset | |---|---|---| | **Bar chart Apex** | Horizontal bars, one for each point. | up to 3 | | **Line chart Apex** | A line through the points, in the order of the rows. | 1 | | **Multiple chart Apex** | Several reports in one chart, each with its own value axis. | up to 3 | | **Donut chart Apex** | A ring split into the points, with a legend. | 1 | | **Pie chart Apex** | A pie split into the points, with a legend. | 1 | | **Bar chart** | Bars, one for each point. | up to 3 | | **Line chart** | Lines through the points. | up to 3 | | **Multiple chart** | Several reports in one chart, each with its own value axis. | up to 3 | | **Donut chart** | A ring split into the points. | 1 | | **Pie chart** | A pie split into the points. | 1 | The **Apex** widgets draw with ApexCharts, loaded from `cdnjs.cloudflare.com`. The other charts draw with Highcharts, loaded from `code.highcharts.com`. The browser that opens the dashboard must reach these addresses. Every chart has one more setting: **Refresh interval**. ## Figures and lists | Widget | What it shows | Reports in Dataset | |---|---|---| | **Last value** | The value and the label of one row in large type, with the icon and name of the report. The arrows below it go to the next and previous rows. It starts with the first row. | 1 | | **Trend** | The value of one row, an arrow up or down, and the average of the other rows. | 1 | | **List** | The name of the report, the number of rows, and each row with its label and value. | 1 | ## Settings | Setting | Widgets | What it does | |---|---|---| | **Dataset** | All | The reports whose chart data the widget shows. | | **Refresh interval** | All | Reloads the data every that many seconds. `0` turns it off. | | **Records count** | Last value, Trend, List | Uses only the first that many rows. `0` uses all rows. The default is `20`. | | **Order** | Trend | **Latest** compares the first row with the average of the other rows. **Oldest** compares the last row with the average of the other rows. | | **Use the median for the calculation** | Trend | Compares with the median of the values instead of the average. | Values are written with the **Decimals** and **Format** of the report. Dates of the X axis show as day, month and year. --- title: Reports API project: Dashboard version: 1.0 section: reference language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/reference/reports-api/ updated: 2026-11-20T06:40:32.732Z --- # Reports API > Read the list of reports and their data over HTTP with a token. Other programs can list your reports and load their data over HTTP. The API is off until you turn it on in the `config` file. ## Turn it on 1. Add these keys to the file `config`, with your own long random token: ```text api : true token : 3f9c0d1e8b7a4c2f9e6d5a4b3c2d1e0f ``` 2. Restart Dashboard. Send the token with every request, in the header `x-token` or in the query argument `token`. Without the right token, or while the API is off, the API answers `401: Unauthorized`. [Private reports](../../guides/reports/) are not listed and cannot be loaded through the API. ## List reports `GET /reports/` returns the reports with their fields and their [dynamic filters](/openreports/1-0/guides/dynamic-filters/). ```bash curl -H 'x-token: 3f9c0d1e8b7a4c2f9e6d5a4b3c2d1e0f' http://localhost:8000/reports/ ``` ```json [ { "id": "JasoWU1dx60f", "name": "Sales by region", "category": "Sales", "filter": [], "fields": [ { "id": "x1jkk54k", "name": "Region", "datatype": "string" }, { "id": "amount", "type": "sum", "name": "Amount", "datatype": "number" } ], "chart": true, "x": "x1jkk54k", "y": "amount", "series": "" } ] ``` ## Load a report `POST /reports/` with the `id` of the report runs it and returns its fields and rows. ```bash curl -X POST -H 'x-token: 3f9c0d1e8b7a4c2f9e6d5a4b3c2d1e0f' -H 'Content-Type: application/json' \ -d '{"id":"JasoWU1dx60f"}' http://localhost:8000/reports/ ``` ```json { "fields": [ { "id": "x1jkk54k", "name": "Region", "datatype": "string" }, { "id": "amount", "name": "Amount", "datatype": "number", "type": "sum", "format": 2 } ], "rows": [ { "x1jkk54k": "West", "amount": 61627.42 }, { "x1jkk54k": "North", "amount": 61365.73 }, { "x1jkk54k": "South", "amount": 60752.96 }, { "x1jkk54k": "East", "amount": 57640.19 } ] } ``` To set the values of dynamic filters, add `"filter": [{ "id": "", "value": "" }]` to the body. ## Load the chart data Add `"chart": true` to load the [chart data](../../guides/chart-data/) of a report with **Enable chart view**. The answer is a list of series with points `x` and `y`: ```json [ { "id": "JasoWU1dx60f", "name": "Sales by region", "icon": "ti ti-globe", "color": "#34A853", "data": [ { "x": "West", "y": 61627.42 }, { "x": "North", "y": 61365.73 }, { "x": "South", "y": 60752.96 }, { "x": "East", "y": 57640.19 } ], "format": "{0} EUR", "decimals": 0 } ] ``` A report with **Series for** returns one series for each value of that field. An unknown or private report answers `404: Not Found`. --- title: Dashboards and widgets project: Dashboard version: 1.0 section: faq language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/faq/dashboards/ updated: 2026-11-20T06:40:32.732Z --- # Dashboards and widgets > Answers to common questions about dashboards, widgets and their data. ## My report is not in the Dataset list. Why? Only reports with **Enable chart view** appear there. Edit the report, select **Enable chart view**, choose the **X axis** and **Y axis** and select **SUBMIT**. See [Chart data](../../guides/chart-data/). ## A widget says Nothing to show The widget has no report in **Dataset** yet. Select its gear icon and choose one. See [Add widgets](../../guides/add-widgets/). ## Last value shows the oldest value **Last value** starts with the first row of the report. Sort the report newest first, for example by the date in descending order, and the latest value comes first. ## The numbers have the wrong unit or too many decimals Widgets write values with the **Format** and **Decimals** of the report. Change them in the chart settings of the report. ## Do I have to reload the page to see new data? No. Set **Refresh interval** in the settings of the widget, for example `60` to reload every minute. Opening the dashboard also loads fresh data. ## Can I make my own widget? Yes. A widget is one HTML file in the folder `dashboard`. See [Custom widgets](../../development/custom-widgets/). --- title: Setup and data project: Dashboard version: 1.0 section: faq language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/faq/setup/ updated: 2026-11-20T06:40:32.732Z --- # Setup and data > Answers to common questions about installing Dashboard and where it keeps its data. ## Does Dashboard change my database? No. Your views only read data with `SELECT`. Dashboard keeps its views, reports and dashboards in the folder `databases` of the app. See [Back up Dashboard](../../guides/backups/). ## How do I use another port? Pass the port when you start Dashboard, for example `node index.js 8080`. See [Install Dashboard](../../guides/install/). ## A chart stays empty The screens and the chart libraries load from public CDNs. Check that the browser can reach `cdn.componentator.com`, `cdnjs.cloudflare.com` and `code.highcharts.com`. ## Can other programs read my reports? Yes, through the [Reports API](../../reference/reports-api/), once you turn it on in the `config` file. ## Where do views and reports come from? They work as in Total.js OpenReports. See [Views](../../guides/views/) and [Reports](../../guides/reports/). --- title: Custom widgets project: Dashboard version: 1.0 section: development language: en license: Total.js Enterprise url: https://totaljs.es/docs/dashboard/1-0/development/custom-widgets/ updated: 2026-11-20T06:40:27.732Z --- # Custom widgets > Add your own widget to Dashboard with one HTML file in the folder dashboard. Every widget of Dashboard is one HTML file in the folder `dashboard` of the app. Add your own file there and it appears in the **Widgets** window like the built-in ones. The file name without `.html` is the ID of the widget. With `autowidgetwatcher : true` in the `config` file, Dashboard picks up new, changed and removed files within a few seconds. Without it, restart Dashboard. See [Configuration](../../reference/configuration/). ## The parts of the file A widget file has three parts: | Part | Runs in | What it holds | |---|---|---| | `
Dataset Refresh interval
``` Drag **Total** onto a dashboard, select its gear icon and choose a report in **Dataset**. ## The settings form Each element in `` with a `path` that starts with `?.` edits the key of the same name in the settings of the widget. `exports.config` gives the values of a new widget. - `` is the **Dataset** picker. `limit` is the largest number of reports. - `` is a number box. Use `type:checkbox` for a check box. ## Styles In `