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:
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.
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.)
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!
Solved! Go to Solution.
@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!
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
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:
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.
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.
Good to hear that!
@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!
Thanks for the update, @Wei_Ying! At least that means I can stop struggling with it. I'll just go another route.
Here's the bug report for anyone following this issue: BUG-000170610