You will want to use an action filter on your icons to filter the graph below.
Here is some documentation on that: Filter Actions
If you want to show a different graph below when a single device is selected, you will have to do some filtering based on ATTR([Device]) or COUNTD([Device]) to hide the original sheet and unhide the filtered drilldown sheet.
Here is some more information on that technique: We made a video of Sheet Swapping and Legend/Filter Popping on a dashboard.
Hope this helps!