Reset on second click

Is there a way to reset graph on second click? I have a pie chart showing sales by channel and a scatter plot showing sales per day. If the user clicks a channel on the pie chart, the scatter plot plots the sales for that particular channel only. I would like for the user to be able to reset the scatter plot to all channels by clicking a selected channel for the second time. Is there a way to do that?

If you are using n_clicks, then you can check the number of times the item has been clicked