Gauge

Visualize single-value data in Ubidots in the form of Gauge charts

The Gauge widget provides a clear and intuitive way to visualize single-value metrics, making it ideal for representing KPIs, performance scores, percentages, or real-time sensor readings. The widget allows users to quickly assess the current state of a variable against defined ranges.

For a preliminary understanding of the widget, please visit this article, which covers the basics of setting up a Gauge widget.

In this section, only advanced features of the Gauge widget will be covered.

ECharts configuration

ECharts is a powerful open-source visualization library designed to create interactive and customizable charts. ECharts provides extensive customization options, allowing you to tailor the appearance and behavior of Gauges to fit specific requirements.

In this case, the Gauge widget sits on top of ECharts library, given users the ability to customize the widget by accessing all features provided by the library through the option "ECharts configuration" found in the widget's APPEARANCE tab:

After clicking the option, a big drawer appears from the left exposing the ECharts options JSON that not only maps all fields available from the UI, but also provides an editing environment where users can take full advantage of the Line and Bar series type.

All fields expose through the UI are mapped bidirectionally. This means that if you make a change from the UI, it will be reflected in the EChart options JSON, and viceversa.

Examples

The below examples use the ECharts configuration option to get the results shown. Without this advanced option, getting the same visualization isn't possible by only using the UI available fields.

Full circle Gauge

JSON Example

Speed meter gauge

JSON Example

Pressure gauge

JSON Example

Humidity percentage

JSON Example

Last updated

Was this helpful?