A summary widget displays the count of features or a summary statistic for a field for a collection of features.
You can include text before or after the value to explain the summary information. For example, a summary that indicates values from a field that represent currency can include leading text for the currency symbol. Similarly, for a summary that indicates some measure, the units can be included as trailing text. Leading or trailing text can both be included. The significance of the value displayed is more apparent when units or other qualifying text is displayed with it.
This summary widget shows the average speed of all ambulances in the city. Speed: is leading text, 25.00 is the average field value, and km/h is trailing text.
When a single feature serves as the data source, the value for the chosen field is shown in the widget. If more than one feature is used, such as when there are multiple selected features, a summary operation is performed on the field values. The aggregate can be any one of the following:
- The average value across the features
- The maximum of the values of all the features
- The minimum of the values of all the features
- The sum total of the values of all the features
- Click Edit, and click Edit Operation View.
- To create a new widget, click Widget, click Add Widget, choose the type of widget, and click OK. To update settings for an existing widget, click Settings , and click Configure on the widget's window.
- Click the Data Source drop-down arrow, and choose the item that will provide the data for the widget.
- In the Title box, type a title that will be displayed in the widget's window.
- In the Description box, type a caption that will be displayed below the widget.
- The display type specifies what type of information you intend to display in the gauge. Click the Display Type drop-down arrow and choose whether to display a statistic or a count.
- Click the Value Field drop-down arrow and choose an attribute field that will be displayed. Set the type of operation (sum, average, minimum, or maximum) to apply to the attribute values shown in the widget if more than one feature in the layer is selected. These options do not apply when displaying a count.
- Click the Appearance tab and set the color of the summary text and value.
- When using a data source that represents a single feature, such as a selection in a list widget, click the Name Field drop-down arrow to set the field value that will be displayed above the widget.
- You can type text to appear before and after the value to provide additional context. You can include a space at the end of the leading text and at the beginning of the trailing text so the result shows a space on either side of the value.
- When you're satisfied with the preview, click OK to finish configuring the widget.