Prerequisites
Before proceeding with this guide, it’s recommended that you follow Getting Started guide to become familiar with ThingsBoard devices and dashboards. This will enhance your learning experience and understanding of the concepts presented here.
Introduction
ThingsBoard offers a powerful feature – the ability to create and customize interactive visualizations, also known as dashboards. These dashboards are instruments for monitoring and managing your data and devices efficiently. With ThingsBoard dashboards, users can adapt interfaces to their specific needs, making it easier than ever to inspect their IoT devices and data. What’s brilliant is that each dashboard can be populated with numerous widgets, offering flexibility and customization. These dashboards aren’t limited to a single data source; they can display data from various entities, including devices, assets, and more. Plus, you can assign dashboards to specific Customers, ensuring that the right individuals or teams have access to the data they need.
Dashboards in ThingsBoard provide users with the following capabilities:
-
Data Visualization: Users can create various widgets such as charts, graphs, tables, and more to visualize data obtained from connected devices. This enables operators and analysts to easily analyze information and track device statuses.
-
Device Management: Dashboards can be used to perform management operations on devices, such as turning devices on or off, changing parameters, and so on. Users can set actions and respond to real-time data from devices.
-
Interactivity: Dashboards can be designed with interactive elements such as buttons, switches, allowing users to interact with devices and data.
-
Display Customization: Users can customize the arrangement and size of widgets, choose color palettes, fonts, and other visualization aspects to create a user-friendly and informative interface.
-
Role-Based Access: ThingsBoard allows controlling access to dashboards with different levels of privileges based on user roles. This ensures data security and confidentiality.
ThingsBoard also offers convenient IoT solution templates to reduce time-to-market for your IoT products. These templates include interactive dashboards, processing logic, sample devices, users, and all other necessary entities. Think of these templates as a complete PoC/MVP. Read more about solution templates here.
This guide covers main concepts and various dashboard settings.
Create new dashboard
To add a new dashboard, you should:
- Login to your ThingsBoard instance and navigate to the "Dashboards" page through the main menu on the left of the screen. By default, you navigate to the dashboard group "All";
- Click the "+" sign in the upper right corner of the screen, and select "Create new dashboard" from the drop-down menu;
- In the opened dialog, it is necessary to enter a dashboard title, description is optional. Click "Add";
- Once you have created the dashboard, it will be automatically opened. Save it by clicking the "Save" button in the upper right corner.
- Your first dashboard has been successfully created. As you continue to add new dashboards, they will appear at the top of the list. This default sort is based on the creation timestamp.
![Login to your ThingsBoard instance and navigate to the "Dashboards" page through the main menu on the left of the screen. By default, you navigate to the dashboard group "All";](/images/user-guide/dashboards/overview/create-dashboard-1-pe-preview.png)
![Click the "+" sign in the upper right corner of the screen, and select "Create new dashboard" from the drop-down menu;](/images/user-guide/dashboards/overview/create-dashboard-2-pe-preview.png)
![In the opened dialog, it is necessary to enter a dashboard title, description is optional. Click "Add";](/images/user-guide/dashboards/overview/create-dashboard-3-pe-preview.png)
![Once you have created the dashboard, it will be automatically opened. Save it by clicking the "Save" button in the upper right corner.](/images/user-guide/dashboards/overview/create-dashboard-4-pe-preview.png)
![Your first dashboard has been successfully created. As you continue to add new dashboards, they will appear at the top of the list. This default sort is based on the creation timestamp.](/images/user-guide/dashboards/overview/create-dashboard-4-1-pe-preview.png)
At the stage of creating a dashboard, you can specify it to a different owner and a specific dashboard group right away. How to create a new group of dashboards, read here.
- In the "Add Dashboard" dialog, enter the dashboard title, and then click "Next: Owner and groups";
- Change the owner and select an existing dashboard group or create a new one, then click "Add";
- The created dashboard is located in the "Sensors" dashboard's group and belongs to Customer A.
![In the "Add Dashboard" dialog, enter the dashboard title, and then click "Next: Owner and groups";](/images/user-guide/dashboards/overview/create-dashboard-5-pe-preview.png)
![Change the owner and select an existing dashboard group or create a new one, then click "Add";](/images/user-guide/dashboards/overview/create-dashboard-6-pe-preview.png)
![The created dashboard is located in the "Sensors" dashboard's group and belongs to Customer A.](/images/user-guide/dashboards/overview/create-dashboard-7-pe-preview.png)
By default, the list of dashboards displays all dashboards, including those of your customers. To view only your dashboards, disable the “Include customer entities” option.
![By default, the list of dashboards displays all dashboards, including those of your customers. To view only your dashboards, toggle the "Include customer entities" option.](/images/user-guide/dashboards/overview/create-dashboard-8-pe-preview.png)
Dashboard toolbar
Before starting working with a dashboard, get familiar with its interface to understand which features are responsible for what actions.
The dashboard toolbar allows you to manage states, layouts, settings, aliases, filters, version control, configure timewindow, enter edit mode and add new widgets using the corresponding icons in the toolbar.
Some of these icons (states, layout, settings, entity aliases, filters, version control, add new widget) are visible only in the “Edit” mode. All other icons are visible in both “View” and “Edit” modes. You can hide these icons or configure the toolbar to be minimized by default using settings.
Edit mode
To enter dashboard edit mode, simply open the dashboard you wish to edit and click the “Edit mode” button found in the upper right corner of the screen.
Once you’ve switched to edit mode, you access the dashboard toolbar to add new elements and access controls. Don’t forget to save your changes using the “Save” button, or if you decide to discard any unsaved edits, you can do so by clicking the “Cancel” button.
![To enter dashboard edit mode, simply open the dashboard you wish to edit and click the "Edit mode" button found in the upper right corner of the screen;](/images/user-guide/dashboards/overview/dashboard-settings-edit-mode-1-pe-preview.png)
![Click "Save" button to save the dashboard or click "Cancel" button to rollback all unsaved changes.](/images/user-guide/dashboards/overview/dashboard-settings-edit-mode-2-pe-preview.png)
Add new widget
All IoT dashboards are constructed using ThingsBoard widgets. A widget is an element that displays a specific type of information or functionality on a dashboard. Widgets are used to visualize data, remote device control, alarms management, and display static custom HTML content.
To add a widget to a dashboard, you should:
- Open your dashboard and enter edit mode;
- Click the "+ Add widget" icon at the top of the screen, or (if this is your first widget on this dashboard) click a large "Add new widget" sign in the middle of the screen to open the Select widgets bundle dialog box;
- Select a widget bundle, such as "Charts". To quickly find your desired widget, use the search bar by clicking the magnifying glass icon and entering the widget's name;
- Choose a widget, for instance, "Timeseries Line Chart," and click on it to open the "Add Widget" dialog window;
- Specify the data source, add the data key, and click the "Add" button. Finally, apply your changes;
- Your first widget has been created.
![Open your dashboard and enter edit mode;](/images/user-guide/widgets/overview/add-new-dashboard-1-pe-preview.png)
![Click the "+ Add widget" icon at the top of the screen, or (if this is your first widget on this dashboard) click a large "Add new widget" sign in the middle of the screen to open the Select widgets bundle dialog box;](/images/user-guide/widgets/overview/add-new-dashboard-2-pe-preview.png)
![Select a widget bundle, such as "Charts". To quickly find your desired widget, use the search bar by clicking the magnifying glass icon and entering the widget's name;](/images/user-guide/widgets/overview/add-new-dashboard-3-pe-preview.png)
![Choose a widget, for instance, "Timeseries Line Chart," and click on it to open the "Add Widget" dialog window;](/images/user-guide/widgets/overview/add-new-dashboard-4-pe-preview.png)
![Specify the data source, add the data key, and click the "Add" button. Finally, apply your changes;](/images/user-guide/widgets/overview/add-new-dashboard-5-pe-preview.png)
![Your first widget has been created.](/images/user-guide/widgets/overview/add-new-dashboard-6-pe-preview.png)
Each widget typically has specific settings and parameters that allow users to customize its behavior and appearance according to their needs. For more information about widgets, how to create them, and their settings, click the button below:
Timewindow
Dashboard timewindow represents the time interval and aggregation function that will be used to fetch the time series or alarm data. Timewindow is used by all the time series and alarm widgets unless they are explicitly configured to overwrite its execution. In the case of a time series widget, ThingsBoard fetches telemetry with a timestamp that matches the timewindow. In the case of an alarm widget, ThingsBoard fetches alarms with the created time that matches the timewindow.
The timewindow can work in two modes:
- In the real-time mode, widgets constantly receive updates from the server and automatically show you only the data that matches the time window for a current timestamp;
- In the history mode, widgets receive data only during the initial load and no updates are issued over WebSockets.
![In the real-time mode, widgets constantly receive updates from the server and automatically show you only the data that matches the time window for a current timestamp.](/images/user-guide/dashboards/overview/timewindow-real-time-mode-1-pe-preview.png)
![In the history mode, widgets receive data only during the initial load and no updates are issued over WebSockets.](/images/user-guide/dashboards/overview/timewindow-history-mode-1-pe-preview.png)
The data aggregation function is applicable for time series data and is not applicable for alarms. There are five aggregation functions available at the moment: Min, Max, Average, Sum and Count. The special function called None is used to disable the aggregation. Data aggregation is useful when you don’t want to fetch all time-series data to UI, and you would like to pre-aggregate it on the database level. Using the aggregation functions saves network bandwidth and computation power of the client browser. We recommend using aggregation functions whenever possible if you have a lot of raw values.
The ThingsBoard it is possible to use predefined intervals (Current Day, Previous Day, Previous Month, etc.) in addition to last X minutes/hours/days.
![](/images/user-guide/dashboards/overview/timewindow-interval-3-pe-preview.png)
![From the beginning of the specified timestamp (12 a.m.) to the end of it (12 a.m. the next night).](/images/user-guide/dashboards/overview/timewindow-interval-1-pe-preview.png)
![The chart shows from the begging of the day (12 a.m. at night) until the time when the time window was updated.](/images/user-guide/dashboards/overview/timewindow-interval-2-pe-preview.png)
There are times when the time intervals are long, and you’d like to see the data closer without changing timestamps, therefore, you need to zoom in. Zoom in by holding the right mouse key and move it on the chart to the place where you need to get a closer look. To zoom out to the original size of the chart, double-click on the widget.
![Zoom in by holding the right mouse key and move it on the chart to the place where you need to get a closer look.](/images/user-guide/dashboards/overview/timewindow-zoom-1-pe-preview.png)
![To zoom out to the original size of the chart, double-click on the widget.](/images/user-guide/dashboards/overview/timewindow-zoom-2-pe-preview.png)
The ThingsBoard introduces time zone configurations. By default, the dashboard uses the time zone provided by the browser. Now it is possible to set the time of your browser or a specific country. To quickly find the needed time zone, start typing its name in the time zone bar.
Filters
Entity filters allow you to specify a filter for the list of entities resolved by the entity alias.
Let’s look at an example. Suppose you have thousands of “Thermometer” devices, and you would like to display thermometers of a specific model and with certain battery levels. Let’s also assume that thermometer model is stored as an attribute, and the battery level is stored as a time series data. We will define a filter that checks if the sensor model is “DHT22” and the battery level is less than 20 percent.
- Open your dashboard, enter edit mode and click the "Filters" button in the upper right corner of the dashboard window. In the pop-up window click "Add filter" button;
- In the pop-up window click "Add key filter" button;
- Enter key name, select key type and value type. Then add a filter that checks if the sensor model is "DHT22" and click "Add";
- Add another key filter;
- Add filter that checks if the battery level is less than 20 percent;
- Click "Add" button to add new filter;
- Click "Save" and apply all changes.
![Open your dashboard, enter edit mode and click the "Filters" button in the upper right corner of the dashboard window. In the pop-up window click "Add filter" button;](/images/user-guide/dashboards/overview/dashboard-filters-1-pe-preview.png)
![In the pop-up window click "Add key filter" button;](/images/user-guide/dashboards/overview/dashboard-filters-2-pe-preview.png)
![Enter key name, select key type and value type. Then add a filter that checks if the sensor model is "DHT22" and click "Add";](/images/user-guide/dashboards/overview/dashboard-filters-3-pe-preview.png)
![Add another key filter;](/images/user-guide/dashboards/overview/dashboard-filters-4-pe-preview.png)
![Add filter that checks if the battery level is less than 20 percent;](/images/user-guide/dashboards/overview/dashboard-filters-5-pe-preview.png)
![Click "Add" button to add new filter;](/images/user-guide/dashboards/overview/dashboard-filters-6-pe-preview.png)
![Click "Save" and apply all changes.](/images/user-guide/dashboards/overview/dashboard-filters-7-pe-preview.png)
Filters are applied only to the “latest” value of the attribute or time series key. Don’t use this feature to “filter out” historical time series values.
You can combine different logical expressions over one key using “complex” filters. For example: “(A > 0 and A < 20) or (A > 50 and A < 100)”. Also, you can combine two expressions for different keys using the “and” relation. For example: “(A > 0 and A < 20) and (B > 50 and B < 100)”. It’s not possible to use “or” in relation to combining different keys yet. For example: “(A > 0 and A < 20) or (B > 50 and B < 100)”.
See more examples of how to use filters in this video:
Entity aliases
Entity Aliases determine which entities (devices, assets, etc.) you would like to display on the dashboard. An alias can be thought of as a reference to one or more devices. These references can be static or dynamic.
An example of the static alias is the Single entity alias. An entity is configured once in the alias dialog box. All users see the same data if they have permission to access this device.
An example of a dynamic alias is the Device type alias, which displays all devices of a certain type (e.g. “Thermometer”). This alias is dynamic because the list of devices depends on the user using the dashboard. If you are logged in as a Tenant administrator, this alias will be allowed for all Thermometer devices. However, if you are logged in as a Customer user, this alias will be resolved to Thermometer devices that are assigned/owned by that Customer.
Let’s create a dynamic alias, which displays all devices of a certain “Smart sensors” type.
- To add an alias, open your dashboard and enter edit mode. Then, in the upper right corner, locate the "Entity aliases" button and click it. A pop-up window will appear, where you should click the "Add alias" button;
- In the new pop-up window, fill in the alias name, select the filter type and device type, and then click the "Add" button;
- Click "Save" button to save the alias and all changes.
![To add an alias, open your dashboard and enter edit mode. Then, in the upper right corner, locate the "Entity aliases" button and click it. A pop-up window will appear, where you should click the "Add alias" button;](/images/user-guide/dashboards/overview/dashboard-aliases-1-pe-preview.png)
![In the new pop-up window, fill in the alias name, select the filter type and device type, and then click the "Add" button;](/images/user-guide/dashboards/overview/dashboard-aliases-2-pe-preview.png)
![Click "Save" button to save the alias and all changes.](/images/user-guide/dashboards/overview/dashboard-aliases-3-pe-preview.png)
Please see the Entity aliases documentation for more information.
Settings
Dashboard settings allow adjusting and altering the overall look of the Dashboard. You can change the title, logo, and customize the toolbar.
To start customizing the Dashboard enter Edit mode, then click the “gear” icon in the upper right corner of the dashboard window to open the dashboard settings window.
![Open the dashboard and click the "Edit mode" button in the upper right corner of the screen;](/images/user-guide/dashboards/overview/dashboard-settings-1-pe-preview.png)
![Click the “gear” icon at the top of the window;](/images/user-guide/dashboards/overview/dashboard-settings-2-pe-preview.png)
![The dashboard settings window will open.](/images/user-guide/dashboards/overview/dashboard-settings-3-pe-preview.png)
Title settings
If you want the Title to be displayed on the dashboard, you need to enable the “Display dashboard title” checkbox. The default text color is black. Color and transparency are easily adjusted using the Title color parameter by clicking the colored circle and choosing the desired color for the title by moving the slider. The changed title appears on the top left of the Dashboard.
![Check the box "Display dashboard title" and select color of title;](/images/user-guide/dashboards/overview/dashboard-settings-title-color-1-pe-preview.png)
![The changed title appears on the top left of the Dashboard.](/images/user-guide/dashboards/overview/dashboard-settings-title-color-2-pe-preview.png)
Dashboard logo settings
You can set dashboard logo which displayed in dashboard fullscreen mode. For this, check the box “Display logo in dashboard fullscreen mode” and add dashboard logo image.
![Display logo in dashboard fullscreen mode" and add dashboard logo image. Apply changes;](/images/user-guide/dashboards/overview/dashboard-logo-settings-2-pe-preview.png)
![Expand dashboard to fullscreen;](/images/user-guide/dashboards/overview/dashboard-logo-settings-3-pe-preview.png)
![The added logo appears in the top left corner in the fullscreen mode of the dashboard.](/images/user-guide/dashboards/overview/dashboard-logo-settings-4-pe-preview.png)
Toolbar settings
The checkboxes “Display dashboard selection”, “Display entities selection”, “Display filters”, “Display timewindow”, “Display export” and “Display update dashboard image” are responsible for the visibility of the appropriate options on the Dashboard toolbar panel.
The “Display filters” option is shown on the toolbar panel only if at least one filter has been created. If the filter was created, but you’d like to limit the customer’s opportunity to modify the device’s indicators, we disable the ability to see filters on the toolbar panel by unchecking the corresponding checkbox.
You can display/hide toolbar icons. Let’s hide “Display dashboards selection”, “Display timewindow” and “Display export” icons on the dashboard page.
![Hide "Display dashboards selection", "Display timewindow" and "Display export" icons on the dashboard page;](/images/user-guide/dashboards/overview/toolbar-settings-1-pe-preview.png)
![The specified icons are hidden on the dashboard page.](/images/user-guide/dashboards/overview/toolbar-settings-2-pe-preview.png)
The “Hide Toolbar” option will hide the toolbar from the dashboard page. Instead of it, on the upper right of the screen, you will find “Enter edit mode” icon.
![The “Hide Toolbar” will hide the toolbar from the dashboard page.](/images/user-guide/dashboards/overview/toolbar-settings-3-pe-preview.png)
![Instead of the toolbar, on the upper right of the screen, you will find “Enter edit mode” icon.](/images/user-guide/dashboards/overview/toolbar-settings-4-pe-preview.png)
The “Keep toolbar opened” option is responsible for displaying the toolbar on the dashboard page. If we disable it, the toolbar will be closed. Instead of it, on the upper right of the screen you find the three-dots icon. By clicking on it, the hidden toolbar will be opened.
![The "Keep toolbar opened" is responsible for displaying the toolbar on the dashboard page.](/images/user-guide/dashboards/overview/toolbar-settings-5-pe-preview.png)
![Instead of the toolbar, on the upper right of the screen you find the three-dots icon. By clicking on it, the hidden toolbar will be opened.](/images/user-guide/dashboards/overview/toolbar-settings-6-pe-preview.png)
Layouts
Layouts define how widgets are arranged on a Dashboard. To manage a layout, you should enter edit mode and click the button three-rectangles “Manage layouts” in the upper left corner of the dashboard window. It opens the small window for layouts’ control.
![Enter edit mode and click the button three-rectangles "Manage layouts" in the upper left corner of the dashboard window. It opens the small window for layouts’ control;](/images/user-guide/dashboards/overview/manage-layouts-1-pe-preview.png)
The “Main” layout is the one that you’re managing now. Basically, it’s your dashboard. Click the “gear” icon named “Layout setting” to open the layout settings window.
![Click the "gear" icon named "Layout setting" to open layout settings window.](/images/user-guide/dashboards/overview/manage-layouts-2-pe-preview.png)
![The layouts’ settings are identical to the layout settings and the background settings of the dashboard settings.](/images/user-guide/dashboards/overview/manage-layouts-3-pe-preview.png)
Layout settings
Columns count
While editing the Dashboard, specifically the size and space of your widgets, you can notice a whitish grid on a gray background. These are columns that determine how many widgets can fit horizontally on a Dashboard. By default, the number of columns is 24. You can increase or decrease their number. The minimum number of columns is 10. The maximum number is 1000 columns.
Margin between widgets
This margin type determines how much space is between widgets. By default, the margin is set to 10. You can remove it by setting the Margin between widgets field to 0 or increasing the margin, meaning the distance between widgets. The maximum allowable margin is 50.
Auto fill layout height
By default, the Auto fill layout height checkbox is unchecked so that you can freely adjust the size of the widgets. If you tick this option, all the widgets on the Dashboard will fill in vertically in the space of the screen.
![When the checkbox is ticked, all the widgets fit vertically in the space of a screen;](/images/user-guide/dashboards/overview/layout-settings-auto-fill-layout-height-1-pe-preview.png)
![Auto fill layout height disabled, so we have to scroll down the widgets;](/images/user-guide/dashboards/overview/layout-settings-auto-fill-layout-height-2-pe-preview.png)
![When auto fill layout height is enabled, the widgets fit on the screen.](/images/user-guide/dashboards/overview/layout-settings-auto-fill-layout-height-3-pe-preview.png)
Background color
The Background color option allows you to customize the color that you’d like to be on the Dashboard’s background. To change it, click on the background color row. In the pop-up window with sliders choose the needed color and wished transparency. Then, press “Save” to apply changes. After saving, you can see the customized background.
![Click on the "Background color" row;](/images/user-guide/dashboards/overview/layout-settings-background-color-1-pe-preview.png)
![In the Color pop-up, choose the needed color and wished transparency. Then, click "Save" to apply changes;](/images/user-guide/dashboards/overview/layout-settings-background-color-2-pe-preview.png)
![After saving, you can see the customized background.](/images/user-guide/dashboards/overview/layout-settings-background-color-3-pe-preview.png)
Background image
This option allows setting the picture as a background. To do this, you should drop an image in the appropriate field, or upload it from a folder on your computer. Once you select it, an image preview will appear on the left of the Settings window. To adjust the position of the image more precisely, click the drop-down menu and choose how exactly the picture will fill the background space. For instance, let’s choose “Cover” and click “Save” to see how the background has changed.
![Drop an image in the appropriate field, or upload it from a folder on your computer;](/images/user-guide/dashboards/overview/layout-settings-background-image-1-pe-preview.png)
![To adjust the position of the image more precisely, click the "Background size mode" drop-down menu and choose how exactly the picture will fill the background space. And apply changes;](/images/user-guide/dashboards/overview/layout-settings-background-image-2-pe-preview.png)
![After saving changes, you can see the customized background.](/images/user-guide/dashboards/overview/layout-settings-background-image-3-pe-preview.png)
Mobile layout settings
By default, the Auto fill layout height checkbox is unchecked so that you can freely adjust the size of the widgets on your mobile device. If you tick this option, all the widgets on the Dashboard will fill in vertically in the space of the screen.
Mobile row height determines how tall you’d like your widgets to be on your mobile device.
By default, the height is set to 70px, but you can make it smaller or larger. The minimum Mobile row height is 5px, and the maximum allowable value is 200px.
Divider
If we toggle the “Divider” checkbox, we divide the dashboard into two separate parts. For each part, we are able to configure their own settings and interface.
Just to see how it can look like, let’s set up both layouts in completely different ways. Let’s add a background image to the left layout and apply a new background color to the right layout. And we resize the window in a certain percentage ratio to each other (it is just an example and definitely not a recommendation). After setting the parameters, click the “Save” button in the Layouts window to see the changes. After setting the parameters, click the “Save” button in the Layouts window to see the changes.
![Set up both layouts in completely different ways. Set a different background for each window. And resize the window sizes in a certain percentage ratio to each other. Then save changes;](/images/user-guide/dashboards/overview/manage-layouts-5-pe-preview.png)
![](/images/user-guide/dashboards/overview/manage-layouts-6-pe-preview.png)
States
The States feature exists to create a layered hierarchy in your Dashboard. To use States properly, you need to assign a specific action to a widget that will help you fast “travel” among the required states. To do this, you should enter edit mode and click the button two-layered squares “Manage dashboard states” in the upper left corner of the dashboard window. The Manage dashboard states configuration window will open.
![Enter edit mode and click the button two-layered squares "Manage dashboard states" in the upper left corner of the dashboard window. It will open the window with a dashboard state configuration.](/images/user-guide/dashboards/overview/dashboard-states-1-pe-preview.png)
Since you haven’t created any states yet, you have only your “Root state”, namely your Dashboard. Root state defines the main state of your hierarchy. After creating additional states, you easily can change a root state by clicking the “Pencil” icon (Edit dashboard state) and selecting the “Root state” checkbox.
![You can change a root state by clicking the “Pencil” icon (Edit dashboard state);](/images/user-guide/dashboards/overview/dashboard-states-root-1-pe-preview.png)
![Tick the “Root state” checkbox, and save changes.](/images/user-guide/dashboards/overview/dashboard-states-root-2-pe-preview.png)
To add a new state, you need to click on the “+” icon in the right upper of the window, it will open the Add dashboard state window. Assign a name, and the State ID will automatically generate based on that name, though you have the option to modify it. Click “Add” and then save all changes.
![To add a new state, you need to click the “+” button in the right upper of the manage dashboard states window;](/images/user-guide/dashboards/overview/dashboard-states-2-pe-preview.png)
![Enter a state name, State ID will form automatically according to the name, but you can change it. Click "Add";](/images/user-guide/dashboards/overview/dashboard-states-4-pe-preview.png)
![After adding states, save all changes;](/images/user-guide/dashboards/overview/dashboard-states-5-pe-preview.png)
![You can navigate between states through a drop-down menu.](/images/user-guide/dashboards/overview/dashboard-states-6-pe-preview.png)
Giving a corresponding action to a particular widget allows traveling between states. To add an action, you should click the “pencil” icon (Edit widget) in the upper right corner of the widget to enter the widget configuration mode. There you need to navigate to the “Action” tab and click the “+” icon to add a new action.
![Click the “pencil” icon (edit widget) in the upper right corner of the widget to enter the widget configuration mode;](/images/user-guide/dashboards/overview/dashboard-states-7-pe-preview.png)
![Navigate to the “Action” tab and click the “+” icon to add a new action;](/images/user-guide/dashboards/overview/dashboard-states-8-pe-preview.png)
It will open the “Add action” window.
- The Action source is a particular act that needs to be done to achieve an aim.
- The Name means a preferred title to an action.
- The Icon defines a symbol for action.
- The Type determines an aim of the action.
In our case, a Type should be “Navigate to new dashboard state”. After choosing this option, the line “Target dashboard state” will appear, where we have to choose a newly created state. When the configuration for a new action is done, click the “Add” button. The new action appears in the actions list. Click the “Apply” button at the upper right of the window to apply changes.
As we have chosen the “On row click” action, we need to click on the row of our widget to bring the action into effect. After clicking, we immediately transfer to the chosen state.
![Enter the action name, select the action source, an aim of the action, and select the state to which you will be transferred. Then click "Add" button;](/images/user-guide/dashboards/overview/dashboard-states-9-pe-preview.png)
![The new action appears in the actions list. Apply changes;](/images/user-guide/dashboards/overview/dashboard-states-10-pe-preview.png)
![Click the row of our widget to activate the action;](/images/user-guide/dashboards/overview/dashboard-states-11-pe-preview.png)
![After clicking, we immediately transfer to the chosen state.](/images/user-guide/dashboards/overview/dashboard-states-12-pe-preview.png)
For the state to be named after the entity, use ${entityName} as the name of the state. Thus during the action, you will be transitioned to a state that is called the same as the entity that took part in the action.
![For the state to be named after the entity, use ${entityName} as the name of the state;](/images/user-guide/dashboards/overview/dashboard-states-13-pe-preview.png)
![Click the “pencil” icon (edit widget) in the upper right corner of the widget to enter the widget configuration mode. Navigate to the “Action” tab and click the “+” icon to add a new action;](/images/user-guide/dashboards/overview/dashboard-states-14-pe-preview.png)
![Enter action name, select action source, an aim of the action and select a state to which you will be transferred. Then click "Add" button;](/images/user-guide/dashboards/overview/dashboard-states-15-pe-preview.png)
![The new action appears in the actions list. Apply changes;](/images/user-guide/dashboards/overview/dashboard-states-16-pe-preview.png)
![Click the row of our widget to activate the action;](/images/user-guide/dashboards/overview/dashboard-states-17-pe-preview.png)
![After clicking, you will be transitioned to a state that is called the same as the entity that took part in the action.](/images/user-guide/dashboards/overview/dashboard-states-18-pe-preview.png)
Managing dashboard
With your dashboards, you can perform operations such as export dashboard in the JSON format, share dashboard group, make dashboard group public, edit dashboard and delete dashboard using the corresponding icon next to the dashboard.
Let’s look at each operation.
Export dashboard
In the ThingsBoard you can export a dashboard as a configuration file in JSON format. You can use this file to transfer your Dashboard or widget configuration to another instance.
To export a dashboard, go to the “Dashboards” page. Find the dashboard you want to export in the list and click on the “Export dashboard” button located next to the dashboard’s name. The configuration file in JSON format with all settings on the control panel will be saved on your PC.
![To export a dashboard, go to the "Dashboards" page. Opposite the name of the dashboard in the list, click on the “Export dashboard” button. The configuration file in JSON format with all settings on the control panel will be saved on your PC.](/images/user-guide/dashboards/managing-dashboard/export-dashboard-1-pe-preview.png)
To export the dashboard directly from the toolbar, open the dashboard and click the “Export dashboard” button in the upper right corner of the screen and select “Export JSON configuration”. The dashboard is exported to the configuration file in JSON format.
![Go to the "Dashboards" page, open the dashboard and click the "Export dashboard" button in the upper right corner of the screen and select "Export JSON configuration".](/images/user-guide/dashboards/overview/dashboard-toolbar-export-1-pe-preview.png)
Dashboard export is also possible in several additional formats: PDF, PNG or JPEG. This is useful when you need to send the data displayed in your dashboard by email or print.
![Go to the "Dashboards" page, open the dashboard and click the "Export dashboard" button in the upper right corner of the screen. Choose from several additional formats: PDF, PNG or JPEG, and click on it;](/images/user-guide/dashboards/overview/dashboard-toolbar-export-png-pdf-1-pe-preview.png)
![The dashboard that was exported as PNG.](/images/user-guide/dashboards/overview/pdf-export-preview.png)
Import dashboard
You can import a dashboard from a JSON configuration file. This can be useful when you are migrating your dashboard configuration from another instance.
To import a dashboard, follow these steps:
- Go to the "Dashboards" page and click on the "+" button in the upper right corner of the page and select "Import dashboard" from the drop-down menu;
- In the import dashboard window, upload the dashboard configuration JSON file and click "Import";
- You have imported a dashboard. Open it;
- As you can see, your dashboard has been imported along with all of its widgets.
![Go to the "Dashboards" page and click on the "+" button in the upper right corner of the page and select "Import dashboard" from the drop-down menu;](/images/user-guide/dashboards/managing-dashboard/import-dashboard-1-pe-preview.png)
![In the import dashboard window, upload the dashboard configuration JSON file and click "Import";](/images/user-guide/dashboards/managing-dashboard/import-dashboard-2-pe-preview.png)
![You have imported a dashboard. Open it;](/images/user-guide/dashboards/managing-dashboard/import-dashboard-3-pe-preview.png)
![As you can see, your dashboard has been imported along with all of its widgets.](/images/user-guide/dashboards/managing-dashboard/import-dashboard-4-pe-preview.png)
Share dashboard group
You can share a dashboard group with your customers, granting them permissions such as “Read”, “Write”, or using a previously created role. Roles are sets of permissions that define what actions users can perform. For more information about roles read here.
To share a dashboard group, follow these steps:
- Go to the "Dashboards" page and navigate to the "Groups" tab. Click the "Share" icon next to the dashboard group that you want to share;
- Select the customer to which you want to share the dashboard group. Additionally, you can share the dashboard group with a specific user group or with all users of the customer. Specify permissions and click "Share".
![Go to the "Dashboards" page and navigate to the "Groups" tab. Click the "Share" icon next to the dashboard group that you want to share;](/images/user-guide/dashboards/managing-dashboard/share-dashboard-group-1-pe-preview.png)
![Select the customer to which you want to share the dashboard group. Additionally, you can share the dashboard group with a specific user group or with all users of the customer. Specify permissions and click "Share".](/images/user-guide/dashboards/managing-dashboard/share-dashboard-group-2-pe-preview.png)
Make dashboard group public
You can make the dashboard group and all its dashboards public and then share links to those dashboards with other users.
For this you should:
- Go to the "Dashboards" page and navigate to the "Groups" tab. Click the "Make public" icon next to the dashboard group that you want to make public;
- In the confirmation dialog box, click "Yes";
- To copy the public dashboard link and share it, open public dashboard group and click the "Public dashboard link" icon opposite the needed dashboard;
- In the pop-up window, click "Copy public link" icon. You can now share the dashboard using this link, for example, by sending it via email. Or you can use the quick buttons to share the link on social networks.
![Go to the "Dashboards" page and navigate to the "Groups" tab. Click the "Make public" icon next to the dashboard group that you want to make public;](/images/user-guide/dashboards/managing-dashboard/make-public-dashboard-1-pe-preview.png)
![In the confirmation dialog box, click "Yes";](/images/user-guide/dashboards/managing-dashboard/make-public-dashboard-2-pe-preview.png)
![To copy the public dashboard link and share it, open public dashboard group and click the "Public dashboard link" icon opposite the needed dashboard;](/images/user-guide/dashboards/managing-dashboard/make-public-dashboard-3-pe-preview.png)
![In the pop-up window, click "Copy public link" icon. You can now share the dashboard using this link, for example, by sending it via email. Or you can use the quick buttons to share the link on social networks.](/images/user-guide/dashboards/managing-dashboard/make-public-dashboard-4-pe-preview.png)
To make a dashboard private again, follow these steps:
- Go to the "Dashboards" page and select the "Groups" tab. Click the "Make private" icon next to the dashboard group that you want to make private;
- In the confirmation dialog box, click "OK".
![Go to the "Dashboards" page and select the "Groups" tab. Click the "Make private" icon next to the dashboard group that you want to make private;](/images/user-guide/dashboards/managing-dashboard/make-public-dashboard-5-pe-preview.png)
![In the confirmation dialog box, click "OK".](/images/user-guide/dashboards/managing-dashboard/make-public-dashboard-6-pe-preview.png)
Edit dashboard
Edit the fields you need, such as the title or description of the dashboard. After making the edits, remember to save all changes. With these steps, you will have successfully updated the dashboard information.
Let’s see how to do this:
- Go to the "Dashboards" page and click the "Dashboard details" icon next to the dashboard that you want to edit;
- In the "Dashboard details" window, click the "Pencil" icon to enter edit mode;
- Edit the fields you need. For example, edit the title of the dashboard, specify description. After making the edits, remember to save all changes;
- You have updated the dashboard information.
![Go to the "Dashboards" page and click the "Dashboard details" icon next to the dashboard that you want to edit;](/images/user-guide/dashboards/managing-dashboard/dashboard-details-1-pe-preview.png)
![In the "Dashboard details" window, click the "Pencil" icon to enter edit mode;](/images/user-guide/dashboards/managing-dashboard/dashboard-details-2-pe-preview.png)
![Edit the fields you need. For example, edit the title of the dashboard, specify description. After making the edits, remember to save all changes;](/images/user-guide/dashboards/managing-dashboard/dashboard-details-3-pe-preview.png)
![You have updated the dashboard information.](/images/user-guide/dashboards/managing-dashboard/dashboard-details-4-pe-preview.png)
Delete dashboard
You can delete a dashboard using one of the following ways:
First way:
- Go to the "Dashboards" page and click the "Trash" icon opposite the dashboard`s name you want to delete;
- Confirm deleting the dashboard in the dialog box.
![Go to the "Dashboards" page and click the "Trash" icon opposite the dashboard`s name you want to delete;](/images/user-guide/dashboards/managing-dashboard/delete-dashboard-1-pe-preview.png)
![Confirm deleting the dashboard in the dialog box.](/images/user-guide/dashboards/managing-dashboard/delete-dashboard-2-pe-preview.png)
Second way:
- Click the "Dashboard details" icon next to the dashboard that you want to delete;
- In the "Dashboard details" window, click "Delete dashboard" button;
- Confirm deleting the dashboard in the dialog box.
![Click the "Dashboard details" icon next to the dashboard that you want to delete;](/images/user-guide/dashboards/managing-dashboard/delete-dashboard-3-pe-preview.png)
![In the "Dashboard details" window, click "Delete dashboard" button;](/images/user-guide/dashboards/managing-dashboard/delete-dashboard-4-pe-preview.png)
![Confirm deleting the dashboard in the dialog box.](/images/user-guide/dashboards/managing-dashboard/delete-dashboard-5-pe-preview.png)
You can also delete multiple dashboards at once.
- Mark one or multiple dashboards you want to delete. Click on the "Trash" bin icon in the top right corner;
- Confirm deleting dashboards in the dialog box.
![Mark one or multiple dashboards you want to delete. Click on the "Trash" bin icon in the top right corner;](/images/user-guide/dashboards/managing-dashboard/delete-dashboard-6-pe-preview.png)
![Confirm deleting dashboards in the dialog box.](/images/user-guide/dashboards/managing-dashboard/delete-dashboard-7-pe-preview.png)
Next steps
-
Widgets - This guide contains instructions for configuring ThingsBoard widgets.
-
Data visualization - These guides contain instructions how to configure complex ThingsBoard dashboards.
-
Data processing & actions - Learn how to use ThingsBoard Rule Engine.