Legend | Urbi Pro | Urbi Documentation
Urbi Pro

Legend

With the Legend widget, you can view information about the data for layers added to the dashboard scene. The widget is automatically created when the scene is created, and any changes to the layer data (e.g., modifying the sample) are reflected in the legend.

Example of the Legend widget:

Legend

The color scale and data ranges are inherited into the legend from the settings of the data layer visualization. If necessary, you can customize a color scale and data ranges for the legend and also change the order of the data layers in the widget.

When you hover over a visualization element on the map, a tooltip with the legend is displayed:

Legend in map tooltips for points
Legend in map tooltips for hexbins

You can customize a color scale and data ranges for the legend by modifying the layer visualization settings. Customization of ranges is not available for the Heatmap visualization method.

Customizing the legend through layer visualization
  1. Go to the Dashboards tab.
  2. Open the required dashboard.
  3. To open a scene, use the arrows Left arrow and Right arrow. If there is only one scene in the dashboard, it opens automatically when you open the dashboard.
  4. To open a layer, click Layers icon and select the required layer.
  5. Set the legend parameters.

For the legend customizing, the following parameters are available:

  • Color basis: attribute based on which the elements on the map and in the legend are colored according to the color scale. The available values ​​depend on the data in the sample.

  • Color scale: set of prepared color samples.

  • Invert: select to invert the selected color scale.

  • Steps: number of steps in the color scale of the legend from 1 to 10.

  • Legend: configuring of data ranges in the legend. Ranges are calculated automatically depending on a type of scale (for Logarithmic, Linear, and Exponential types). You can also customize ranges manually by entering the required range limits or changing the order and number of ranges (Adjustable type). The specified upper (right) limit is not included in the range. The maximum number of ranges is 10.
    To change the order of ranges, hold down Move icon next to the required range and drag it. To add a range, click Plus icon. To delete a range, click Trash icon.

  • Type of scale: distribution type used to calculate data ranges in the legend. Available only for numeric attributes:

    • Logarithmic - displays a wide range of data. Recommended to use if values ​​differ by several orders of magnitude.
    • Linear - displays values ​​of the same order.
    • Exponential - displays data that changes quickly. Recommended to use if you need to highlight small values and ignore large values.
    • Adjustable - manual configuring of ranges. In all ranges except the last one, the specified upper (right) limit is not included in the range.

By default, the data layer blocks in the Legend widget are displayed in the order they are arranged in the scene. You can customize the order of the layers in the legend without changing the order in the layer list. For example, if you need to show specific layers at the top of the legend.

  1. Go to the Dashboards tab.
  2. Open the required dashboard.
  3. To open a scene, use the arrows Left arrow and Right arrow. If there is only one scene in the dashboard, it opens automatically when you open the dashboard.
  4. If the legend is not displayed on the map, in the top menu of the dashboard, click Widgets icon. In the list of widgets, select the checkbox (Checkbox) for the legend or click icon Widget menu and select Show on map.
  5. Hold down Move icon for the required layer and drag it.