Chart Slicer

For a complex scenario, you can customize GeneralSlicerData as shown in the following example: