Horizontal Bar Widget
Charts are a powerful way to visualize your data and look for insights. You can customize colors, apply Formula, decide whether bars are stacked, and configure other visual options.
This widget also accepts features such as metadata and series, which can be set in your variable data.
1. 'Data From' Field
This field allows you to set the device and variable that will be used in this widget.
Editing Variable Options
Click on the cog icon next to a variable to edit its options, such as formulas or color. Click on the close icon to remove that variable from the widget’s data.
Dashboard Types
The available options in the Data From field depend on whether you are using a normal dashboard or a blueprint dashboard.
1.1 'Data From' for Normal Dashboards
From the Data From option on the right‑hand menu, select one device from your list of devices and then choose the variable that contains the data.
1.2 'Data From' for Blueprint Dashboards
From the Data From option on the right‑hand menu, add a Blueprint device and input the name of the variable that holds the information.
When using a blueprint dashboard, the Variable selector will not list variables because it does not know which devices are linked to your blueprint device.
2. X-axis and Y-axis
In the horizontal bar chart widget you can customize how data is displayed on both axes.
2.1 X‑axis
By default, the X‑axis shows the time of each value, and you can set a custom time range.
If you need to group data that does not share the same timestamp, select a variable that contains the grouping key; all values will then be grouped by series.
You can also define the X‑axis time range dynamically using another variable’s metadata:
{
"variable": "time_range",
"value": "Any value",
"metadata": {
"start_date": "2021-06-17T00:00:00.000Z",
"end_date": "2021-06-18T00:00:00.000Z"
}
}
The start_date
and end_date
must be in ISO 8601 format.
2.2 Y‑axis
On the horizontal axis you can adjust scaling behavior, apply metric prefixes or abbreviations, change the step value (the distance between ticks), and more.
By default the widget automatically selects an appropriate scale for your data; manual adjustments are only needed if you have specific requirements.
3. Filtering Data
You can pre‑set date filters that will be shown when the widget loads. Filters can be expressed in minutes, hours, days, weeks, months, or a custom range chosen from a calendar picker.
4. Performance Optimization – Downsampling
When a chart contains many data points, enable the Downsampling feature to improve performance and readability.
Two parameters control downsampling:
- Threshold – the number of data points at which downsampling starts.
- Factor – how aggressively data is reduced; higher values increase performance but may reduce detail.