Skip to main content

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

Main features

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

    • 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, logical attributes, or number of objects: to count the number of values in the sample.
  • The maximum number of layers (blocks in 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 in the widget.

  • If the filtering by territories or data attributes is applied on a dashboard scene, only the values that match the filters are displayed in the widget. For more information, see the Filtering data on a dashboard instruction.

Creating a 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 values.
    • Aggregation type: function used to calculate aggregation attribute values.
  7. Set the remaining widget parameters if necessary.

  8. Click Create.

The new widget is 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 in the widget.

Parameters

General widget settings

Parameter
Description
Widget nameWidget name.

Selecting attributes

Parameter
Description
LayerData 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 attributeAttribute, which value is aggregated and displayed on the widget:
  • Text attribute. You can select any attribute values ​​from the data sample. When you modify the sample, the available attribute values are also changed.
  • Numeric attribute.
  • Logical attribute. Available values are Yes and No/Unknown.
  • 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 typeFunction used to calculate aggregation attribute values.

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, logical attributes, and number of objects:
  • Quantity: number of objects in the sample.
FormattingFormat of the aggregation attribute value displayed in the widget. To change the format, click Edit icon and and select a format:
  • Without formatting: thousands are separated by commas, and the fractional part is separated by a point.
    Example: 12345.6789 → 12,345.6789.
  • 1.2345 → 1.235: rounding to thousandths (by the rounding rule to the nearest integer).
    Example: 12345.6789 → 12,345.679.
  • 1.2345 → 1.23: rounding to hundredths (by the rounding rule to the nearest integer).
    Example: 12345.6789 → 12,345.68.
  • 1.2345 → 1.2: rounding to tenths (by the rounding rule to the nearest integer).
    Example: 12345.6789 → 12,345.7.
  • 1.2345 → 1: rounding to integers (by the rounding rule to the nearest integer).
    Example: 12345.6789 → 12,346.
  • 1,200 → 1K: compact number notation with indication of magnitude. Only for numbers from 1000.
    Examples: 12345 → 12K, 1234567 → 1M.
  • 1,256 → 1,260: smart rounding to tens. The integer part is rounded to tens, and the fractional part is discarded. Only for numbers from 10.
    Example: 12345.6789 → 12,350.
  • 1,256 → 1,300: smart rounding to hundreds. The integer part is rounded to hundreds, and the fractional part is discarded. Only for numbers from 100.
    Example: 12345.6789 → 12,300.
  • 1,257 → 1,000: smart rounding to thousands. The integer part is rounded to thousands, and the fractional part is discarded. Only for numbers from 1000.
    Example: 12345.6789 → 12,000.
  • 0.12345 → 12.345 %: converting to percentages. The maximum number of decimal places is 3.
    Examples: 0.12345 → 12.345%, 1 → 100%.
  • 1,200,000 → 1.2E6: scientific format (exponential notation).
    Examples: 12345 → 1.235E4, 1 → 1E0.
Attribute nameTo rename the attribute displayed on the widget, click Edit icon and enter a new value. The attribute name in the dataset will not change.

Description

Parameter
Description
TextText displayed in the widget above the statistics blocks. The maximum number of characters is 5000.
H1Title (heading 1).
H2Heading 2.
H3Heading 3.
BBold.
IItalic.
UUnderline.
LinkInserting a link.
ColorText color. Select a color from the palette or specify it in the HEX format.

Additional settings

Parameter
Description
Show aggregation typeShows the aggregation type in the widget next to the name of the aggregation attribute.

What's next?