(Added at v1.2)
The Summary widget allows you to summarize numeric attributes from a feature layer in the current map that fall within the visible map extent. Currently, the Summary widget supports feature layers from feature services. If you want to use feature layers from map services, you must add each layer in the map individually, not as a sublayer in a group.
Configure the Summary widget
This widget can be set to open automatically when an app starts. Hover over the widget and click the Do not open this widget when the app starts button to change the setting to Open this widget automatically when the app starts. (For widgets that you need to add to the app first, you can turn on this option after configuring the widget.)
- Hover over the widget and click the Configure this widget button to open the configuration window.
If you need to add the widget to the app first, click a widget placeholder on the Widget tab. In the Choose Widget window that opens, select the widget and click OK.
- Provide a title for the widget, and optionally click Change widget icon to replace the default icon for this widget with your own image.
A file explorer window appears, allowing you to select a local image file to use as the widget icon.
- Choose a layer from the Select Summary Layer drop-down list.
Currently, the Summary widget only supports feature layers that are added individually to the map. If the layer you want to add is not in the list, make sure it's not added as part of a group layer from the ArcGIS FeatureServer REST endpoint.
- Specify a field from the Summary Layer Filter Field drop-down list to allow users to filter the summarized features.
- Click Add Summary Field to add a field to summarize. You can summarize a field with one of the following options: SUM, AVG, MIN, or MAX. Optionally specify a label for each summary field. To change the order of fields or to delete a field, hover over the field and click the appropriate button under Actions.
Caution:The Summary widget calculates the average value based on the number of features, even if they have blank or null values in the field. The blank or null value is treated as zero since the feature has no data for that particular attribute.
- Check the Show Feature Count option if you want to display the number of features being summarized. Optionally, specify a label, such as COUNT, in the Feature Count Label text box.
- Check the Display as Summary Clusters option if you want to display features as clusters. This option is only available for point feature layers.
- Define the autorefresh interval in minutes for the summary results.
Use the Summary widget
- Click the Summary widget button to open it.
The Summary widget opens at the bottom of the map, and the summarized results display in the widget panel.
- Scroll the panel horizontally to view more results.
- To filter the summarized features, click the Filter drop-down list and choose a filter.
- For point feature layers that had the Display as Summary Clusters option checked during configuration, the summarized features display as clusters.