HOW TO

Display multiple charts with dynamic counts upon feature selection in ArcGIS Web AppBuilder

Last Published: July 18, 2023

Summary

Displaying multiple charts with current feature counts when a feature is selected is important to analyze multiple attributes simultaneously from a subset of data. This enables relationship studies between multiple attributes and potentially saves time in the decision-making process. In this example, treatment plants in South Island, New Zealand are selected and feature counts of different levels of treatment plants and the owners of these plants are dynamically displayed.

Procedure

To create an ArcGIS Web AppBuilder app that displays multiple charts and is updated when features are selected, configure Infographic and Select widgets that reference the same layer.

  1. In ArcGIS Web AppBuilder, select the appropriate theme to display multiple charts. In this example, Dashboard Theme is selected.
  2. Click the Widget tab, and add the Infographic widget The Infographic widget. Configure as follows:
    1. In the Choose a template window, select a chart template and click OK. In this example, Bar is selected.
    2. In the Set data source window, specify the layer of interest and click OK. In this example, Wastewater_Treatment_Plants_South_Island_NZ_ is selected.
    3. Ensure the Use selection option is checked.
Note:
Displaying charts based on feature selection is not available in the Chart widget.
  1. Click the chart area to open the Chart settings section.
  2. On the Data tab of the Chart Settings section, select Display feature counts by category for the Display mode field.
  3. For Category field, select the attribute on which the feature counts are based. In this example, Level of Treatment Plant is selected.
  4. Make changes, if any, to the chart title, axes, and display properties.
  5. Click OK.
Configure the Infographic widget.
  1. Repeat Step 2 to configure more charts.
  2. On the Widget tab, add and configure the Select widget The Select widget.. In the Choose which layers are available to selected field, select the same layer selected in Step 2b. In this example, Wastewater_Treatment_Plants_South_Island_NZ_ is selected.

Selecting certain features on the map updates feature counts on multiple charts dynamically.

Select features.

Article ID:000022687

Software:
  • ArcGIS Web AppBuilder

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic