Modify contents of the legend

I have a stacked bar chart in which several series are grouped. Instead of having 16 series show up in the legend, I’d like to have the eight groups displayed.

Is it possible to modify the chart legend, or will I need to take an alternative approach such as an OptionGroup?