Select to view content in your preferred language

How do I dynamically update the Legend to match an applied Filter?

97
2
Monday
RyanBohan
Regular Contributor

How do I configure the Legend to only show results included in the layers Filter?

  • The data is dynamic, so I can't manually "hide" zero results.

RyanBohan_0-1721678025506.png

 

 

2 Replies
RussRoberts
Esri Notable Contributor

Currently we do not have a way to do this in MV without having to create a filter that excludes those 0 value/labels from the types list which wouldn't be updated dynamically. I think it would be tricky where each pan/zoom could possibly lead to a check on the feature layer to see if those feature counts have changed or if its 0 in the current map extent vs. the whole layer. 

RyanBohan
Regular Contributor

Hi @RussRoberts thank you for the quick reply.  I was hoping I was missing an "easy" button.  I will post it to ideas it will make a great enhancement  someday.

0 Kudos