Select to view content in your preferred language

Trouble filtering map features from time-parsed chart selection

243
7
Jump to solution
2 weeks ago
Labels (1)
HollyTorpey_LSA
Frequent Contributor

I'm working on an Experience Builder app hosted on ArcGIS Online. The app has a map with bird observation points, among other layers. The app also has a bar chart aggregating that same Bird Observations layer. The category is the observation time, it's parsed into one-week intervals, and features are grouped by whether the birds observed were alive or dead. See below:

HollyTorpey_LSA_0-1735671847990.png

The chart looks fine, but I can't seem to get it to filter the map features. I want people to be able to select the bar for the week they are interested in and filter the map to show only those observations.

I have set a message trigger where the trigger data is the output view of the chart and the action data is the Bird Observations layer. The matching field is the same for the trigger data and the action data. 

Screenshot 2024-12-31 133355.png

I have also tried multiple other variations of this configuration, but no matter what I do, I can't get the chart selection to filter the map features. (Don't judge these colors... I'll work on making it pretty after I get it to work.)

HollyTorpey_LSA_3-1735675344933.png

I have referred to this documentation and I believe I'm following all the recommendations: Chart widget—ArcGIS Experience Builder | Documentation

Does anyone have any advice? I'm out of ideas. Thanks in advance and happy new year!

- Holly
0 Kudos
1 Solution

Accepted Solutions
Wei_Ying
Esri Regular Contributor

@HollyTorpey_LSA Thanks for your feedback! Looks like a bug when time parse is on. I can reproduce the problem and have logged an issue for team to investigate. Thanks!

View solution in original post

7 Replies
CodyPatterson
MVP Regular Contributor

Hey @HollyTorpey_LSA 

I believe I may just be seeing something that isn't an issue, but I noticed that when you select the bar graph, there is no selection amount on the table, I was curious if selecting the Birds table would show the results you need? The trigger may be limited to that, but I'm not entirely confident.

Cody

0 Kudos
HollyTorpey_LSA
Frequent Contributor

Thanks for responding, @CodyPatterson. The table's actions are working as I would expect based on my configuration (clicking on a row in the table zooms to the feature on the map and also displays the selected feature in the Feature Info widget). My chart action is supposed to be filtering the framework, so I would expect it to filter the features on the map AND the rows in the Bird Observations table.

The table in my previous screenshot was actually my Nest Locations table, but here's the Bird Observations table:

HollyTorpey_LSA_0-1735677515519.png

It should have only 36 records based on the chart selection, but all 53 records are still present (i.e., the whole table).

Also, I'm using the Filter action, not the Selection action, but I've tried the Selection action too with no luck. I'm wondering if it has to do with the date field. Maybe I'll trouble shoot by making my chart display some other non-date field and see if that works as expected. I also have a pie chart aggregating values from a text field in a different map layer and it does filter the map as expected.

- Holly
0 Kudos
HollyTorpey_LSA
Frequent Contributor

Update: I changed the chart category to a text field and lo and behold, my filter actions started working. So it does seem that the issue is related to the date field.

Further update: I changed the category back to Observation time but did not parse time by week, and the filter action still works, so now it seems that the issue is related to parsing a date field.

- Holly
0 Kudos
Faiez
by
Frequent Contributor

Good to hear that!

 

 

 

 

 

0 Kudos
Wei_Ying
Esri Regular Contributor

@HollyTorpey_LSA Thanks for your feedback! Looks like a bug when time parse is on. I can reproduce the problem and have logged an issue for team to investigate. Thanks!

HollyTorpey_LSA
Frequent Contributor

Thanks for the update, @Wei_Ying! At least that means I can stop struggling with it. I'll just go another route. 

- Holly
0 Kudos
HollyTorpey_LSA
Frequent Contributor

Here's the bug report for anyone following this issue: BUG-000170610

- Holly