Currently, the “Select all”, “Deselect all”, and “Invert selection” buttons update all chart labels toggles, even when chart labels are filtered, i.e. only the toggles matching the filter are visible.
This behavior is very unintuitive: we would expect only the visible toggles to be impacted.
Work to do:
When the user clicks any of these three buttons, only update the states of currently visible toggles.