This example illustrates how to hide series in a chart item by clicking on a legend icon. It is possible to enable or disable this functionality using a custom property:
Limitation: Please note that this implementation works only when the chart coloring settings are set to Auto. Otherwise, you will have to redesign the extension.