Progress indicator
The progress indicator component displays the current progress of an operation or the current capacity of a device as a percentage, in a linear or circular form. This topic describes how to configure the progress indicator component.
Example
The following figure shows a progress indicator on a factory equipment monitoring dashboard, displaying the current energy usage of a boiler.
Step 1: Add the component
-
Create a web application. For more information, see Create a web application.
-
In the web application editor, click the component icon
on the far left. - In the search box above the component list on the left side of the canvas, enter progress indicator, find the component, and drag it to the canvas in the center.
For more information about adding components, see Add a component.
Search for progress indicator in the component panel on the left and add it to the canvas. After selecting the component, you can configure its properties in the style panel on the right: set Type to Linear, set the first interval threshold (for example, 30) and the second interval threshold (for example, 60), and specify colors for the three intervals (for example,#5584FFfor the first interval,#46BC15for the second, and#FF3000for the third), as well as other style parameters such as background color, font color, and font size. In the Data Source section, click Configure Data Source to bind data.
Step 2: Configure the data source
- In the style panel on the right, click data source and then click Configure Data Source.
- On the Data Source Configuration page, select a data source type and complete the configuration.
Available data source types are device, API, static data, and application push.Note The data type returned by the data source must be a single-precision number, double-precision number, or integer.
- Click OK.
Step 3: Configure styles
- In the style panel on the right, configure the component's appearance.
Parameter Description Progress indicator configurations Set the component's shape and interval thresholds. Threshold values must be between 0 and 100. The component supports three intervals, which are defined by setting the thresholds for the first and second intervals. To view a description of the interval ranges, hover over the Help icon
next to First Interval Threshold.Note- If 0 <= property value < First Interval Threshold, the color for the first interval is displayed.
- If First Interval Threshold <= property value < Second Interval Threshold, the color for the second interval is displayed. If property value >= Second Interval Threshold, the color for the third interval is displayed.
Progress indicator styles Set the component's background, font, border, font size, and the colors for the three progress intervals. -
Adjust the component's position on the page. For more information about general component style settings, see Configure styles.
Step 4: Configure interactions
- Select the Interaction tab for the component to configure events and actions. For more information, see Interaction configuration.
This component supports the Value Change event. This value represents the current progress.
For example, when the component's value changes, you can trigger the Set Device Property action to send a command to a device and modify one of its properties.
-
Click Preview in the upper-right corner of the page to view and debug the component's data and style.