FIX: Hide pie legend when results are grouped (PR #8445)

GitHub

You’ve signed the CLA, markvanlan. Thank you! This pull request is ready for review.

:+1: