Select to view content in your preferred language

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

864
4
07-22-2024 01:00 PM
RyanBohan
Frequent 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

 

 

4 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
Frequent 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
JamesDoyle2
Emerging Contributor

What is the status of this feature request?

0 Kudos
RussRoberts
Esri Notable Contributor

We have filter support when you filter out the unique values in the filter expression the legend will honor that expression and not display the filtered out values. There is currently no dynamic filtering based on a class value. 

0 Kudos