Statistics | Urbi Pro | Urbi Documentation
Urbi Pro

Statistics

A Statistics widget displays brief statistics for selected layers and data attributes (e.g., average rating or the number of constructed buildings).

Use a widget to view important aggregated values within a single widget.

Case example: view statistics on buildings, population, and car traffic in a certain area:

Statistics widget
  • Each selected layer is displayed on the widget as a separate block with the values of the selected attributes. As attributes, you can use:

    • Numeric attributes: to count the number of values ​​in the sample or to count values of the attributes using aggregation functions: total, mean, minimum, maximum value, median, and percentile.
    • Text attributes or number of objects: to count the number of values ​​in the sample.
  • The maximum number of layers (blocks on the widget) is 20. The maximum number of attributes for each layer is 20.

  • If necessary, you can edit the names of the attributes displayed in the widget. The attribute names in the dataset will not change.

  • Changes in layer data are automatically reflected on the widget.

Example of creating a Statistics widget
  1. Go to the Dashboards tab.

  2. Open the required dashboard.

  3. Open the scene using the arrows Left arrow and Right arrow. If the dashboard has only one scene, it will open automatically.

  4. In the top menu of the dashboard, click the Widgets icon.

  5. Select the Statistics widget type.

  6. Specify the required parameters:

    • Layer: data layer containing the required attribute.
    • Aggregation attribute: attribute used to aggregate data and calculate the value.
    • Aggregation type: function used to calculate the attribute value.
  7. Set the remaining widget parameters if necessary.

  8. Click Create.

A new widget is created and automatically added to the selected dashboard scene.

Note

When working with the uploaded data, make sure it contains at least one attribute to display a value on the widget.

Parameter
Description
Widget name Widget name.
Parameter
Description
Layer Data layer containing the required attributes. Attributes of each layer are displayed within separate blocks on the widget.

To add another data layer, click Add layer. To change the order of layers (blocks) on the widget, hold Drag and drop icon for the required layer and drag it. To delete a layer, click Cross icon.

The maximum number of layers (blocks on the widget) is 20.
Aggregation attribute Attribute, which value is aggregated and displayed on the widget:
  • Text attribute. You can select any attribute values ​​from the sample in the drop-down list.
  • Numeric attribute.
  • Number of objects.

When the data value changes, the value on the widget is also updated automatically.

To add another data attribute, click Add attribute. To change the order of attributes within a block on the widget, hold Drag and drop icon for the required attribute and drag it. To delete an attribute, click Trash icon.

The maximum number of attributes in each block is 20.
Aggregation type Function used to calculate attribute value.

For numeric attributes:
  • Sum: the sum of the values.
  • Mean: the mean value.
  • Min: the minimum value.
  • Max: the maximum value.
  • Median: the median value that is equal to or greater than 50% of the values ​​in the group.
  • 80th percentile: the value that is equal to or greater than 80% of the values ​​in the group.
  • 95th percentile: the value that is equal to or greater than 95% of the values ​​in the group.
  • 99th percentile: the value that is equal to or greater than 99% of the values ​​in the group.
  • Quantity: number of objects in the sample.

For text attributes and number of objects:
  • Quantity: number of objects in the sample.
Edit To rename the attribute displayed on the widget, click Edit icon and enter a new value. The attribute name in the dataset will not change.
Parameter
Description
Text Text displayed on the widget above the statistics blocks. The maximum number of characters is 5000.
H1 Title (heading 1).
H2 Heading 2.
H3 Heading 3.
B Bold.
I Italic.
U Underline.
Link Inserting a link.
Color Text color. You can select a color from the palette or specify it in HEX format.