Checking which traces are shown in figure


Quick question.

If I look at restyleData when I toggle the legend items on dcc.Graph I get for example:
[{“visible”: [“legendonly”]}, [0]] - which corresponds only to my latest click. But I have been clicking before and turned off other traces as well.

Where can I see the current state of the dcc.Graph of which trace is ‘legendonly’ and which is ‘true’.

To rephrase. I have turned off half of my traces by toggling the legend on the graph. I would like to get the list of those traces that are still shown.