Toggle traces within one legengroup by clicking on graph

Hi,

Wondering if Plotly has an built-in option which enables toggling traces by clicking on the graph.
Basically, would like to click on any point of a curve to select it and update the display showing only that selected curve, then click somewhere to exist and show all curves.
The reason behind that is I got many curves within one group (curves are similar and overlapped), so it’s not possible to just click on individual legend to select.
Any advice will be grateful. Thank you!

Hey @xbwang welcome to the community.

This functionality is not available. If you’re open to use dash, this could be achieved.