English

Problem: Unable to view chart values from the related tables in the Related Table Charts widget in ArcGIS Web AppBuilder

Description

In ArcGIS Web AppBuilder, the Related Table Charts widget does not display the chart values from the related tables of a feature layer.

The image below shows an empty result in the Related Table Charts widget.

Image of the empty results in the Related Table Charts widget

Cause

There is no relationship class available between the feature layers and tables.

Solution or Workaround

Note:
Ensure the feature layer and table are stored in the same geodatabase.
  1. In ArcGIS Pro, in the Catalog pane of the desired project, right-click the file geodatabase.
Image of the Catalog pane
  1. Click New > Relationship Class.
Image of creating a relationship class
  1. In the Create Relationship Class pane, click Parameters and fill in the required fields. For Cardinality, select One to many (1:M), and click Run.
Image of the Create Relationship Class pane
  1. On the top ribbon, click the Share tab. In the Share As group, click the Web Layer drop-down arrow, and click Publish Web Layer.
Image of selecting Publish Web Layer
  1. In the Sharing Map As A Web Layer pane, click General, and fill in the required fields. Click Publish.
  2. In ArcGIS Online, in the Content page, click the My Content tab. Navigate to the published hosted feature layer, click it, and click Open in Map Viewer.
  3. In ArcGIS Online Map Viewer, make the necessary changes if needed, and click Save to save it as a new web map.
  4. In ArcGIS Web AppBuilder, click the Map tab > Choose web map to add the newly created web map. Click Save.
Image of selecting Choose web map in the Map tab
  1. Click the Widget tab, click Set the widgets in this controller, and add the Related Table Charts widget.
  2. In the Configure Related Table Charts window, click Add new to add a new chart and fill in the required fields. Click OK.

The image below displays the chart values from the related tables of a feature layer.

Image of the displayed chart values from the related tables of a feature layer

Related Information

Last Published: 1/12/2021

Article ID: 000024904

Software: ArcGIS Pro 2.7, 2.6.3, 2.6.2, 2.6.1, 2.6, 2.5.2, 2.5.1, 2.5