<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Charts data do not follow Map selections; what did I do wrong in the action trigger? in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/charts-data-do-not-follow-map-selections-what-did/m-p/1267505#M6451</link>
    <description>&lt;P&gt;I have a map of polygons (census districts in a city) and a chart on the right which displays the total population of the city classified by age groups.&amp;nbsp; When it is idle, I would like to chart to display the total population of the city.&amp;nbsp; However, when I select a specific polygon (a district in the city), I would like the chart to only show statistics of that district.&lt;/P&gt;&lt;P&gt;I feel that this is a simple question but I could not figure out how the action trigger should work.&amp;nbsp; I have set a action trigger for my map ("record selection changes &amp;gt; framework &amp;gt; filter data records). In particular, I found that when I select "selected features" on the Chart's data, it will work but when I do not select anything on the map, nothing will show on the chart.&amp;nbsp; On the other hand, when I set it to "Default", and when I select features on the map, statistics on the chart won't change (still showing the population of the city as a whole).&amp;nbsp; To supplement, my chart use SUM of fields as statistics (I have a feeling that it might be relevant).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tcyd_1-1678797411561.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65195iCE2BE124AD78561A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tcyd_1-1678797411561.png" alt="tcyd_1-1678797411561.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tcyd_0-1678797686359.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65198i74A699FAEF50ADA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tcyd_0-1678797686359.png" alt="tcyd_0-1678797686359.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very grateful for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Mar 2023 12:52:52 GMT</pubDate>
    <dc:creator>tcyd</dc:creator>
    <dc:date>2023-03-14T12:52:52Z</dc:date>
    <item>
      <title>Charts data do not follow Map selections; what did I do wrong in the action trigger?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/charts-data-do-not-follow-map-selections-what-did/m-p/1267505#M6451</link>
      <description>&lt;P&gt;I have a map of polygons (census districts in a city) and a chart on the right which displays the total population of the city classified by age groups.&amp;nbsp; When it is idle, I would like to chart to display the total population of the city.&amp;nbsp; However, when I select a specific polygon (a district in the city), I would like the chart to only show statistics of that district.&lt;/P&gt;&lt;P&gt;I feel that this is a simple question but I could not figure out how the action trigger should work.&amp;nbsp; I have set a action trigger for my map ("record selection changes &amp;gt; framework &amp;gt; filter data records). In particular, I found that when I select "selected features" on the Chart's data, it will work but when I do not select anything on the map, nothing will show on the chart.&amp;nbsp; On the other hand, when I set it to "Default", and when I select features on the map, statistics on the chart won't change (still showing the population of the city as a whole).&amp;nbsp; To supplement, my chart use SUM of fields as statistics (I have a feeling that it might be relevant).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tcyd_1-1678797411561.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65195iCE2BE124AD78561A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tcyd_1-1678797411561.png" alt="tcyd_1-1678797411561.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tcyd_0-1678797686359.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65198i74A699FAEF50ADA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tcyd_0-1678797686359.png" alt="tcyd_0-1678797686359.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very grateful for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 12:52:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/charts-data-do-not-follow-map-selections-what-did/m-p/1267505#M6451</guid>
      <dc:creator>tcyd</dc:creator>
      <dc:date>2023-03-14T12:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Charts data do not follow Map selections; what did I do wrong in the action trigger?</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/charts-data-do-not-follow-map-selections-what-did/m-p/1278596#M6709</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/79942"&gt;@tcyd&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;" When it is idle, I would like to chart to display the total population of the city.&amp;nbsp; However, when I select a specific polygon (a district in the city), I would like the chart to only show statistics of that district.&amp;nbsp;"&lt;/P&gt;&lt;P&gt;Based on your description here is my suggestion:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. In Chart widget configuration, just use "Default" data view in data source. So that when idle (no specific selection), chart can show statistic of the whole city.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WeiYing1_0-1681425282714.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67980iA58F63CC68CB3916/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WeiYing1_0-1681425282714.png" alt="WeiYing1_0-1681425282714.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. In Map widget, go to Action setting. Select "Record selection changes" - "Framework"- "Filter data records".&amp;nbsp; Set the trigger data and action data to the same one (your&amp;nbsp;&lt;SPAN&gt;census districts polygon). Then at runtime, you should be able to select a district and then see the chart update showing statistic only for that district.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WeiYing1_1-1681425321240.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67981iAFBF6CCEFDCDD7B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WeiYing1_1-1681425321240.png" alt="WeiYing1_1-1681425321240.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wei&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 22:35:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/charts-data-do-not-follow-map-selections-what-did/m-p/1278596#M6709</guid>
      <dc:creator>Wei_Ying</dc:creator>
      <dc:date>2023-04-13T22:35:38Z</dc:date>
    </item>
  </channel>
</rss>

