I do not know if it can be done.

But I have a pivot table chart with about 10 values.
So my legend shows these 10 values wit their description.
Now I have a filter on that pivot table to show a graphic in various situations.

However these 10 values are never all 10 in scope when I make a filter change.
So is it possible to not show the values in the legend when there is no value for them in the pivot chart plot area?