I have multiple data series (go.Scatter) on single graph. When clicking on legend entry Plotly hides or shows adequate data serie.
Now I’m trying to create callback function which will response to these clicks. After reading https://dash.plot.ly/interactive-graphing I thought that “relayoutData” is the right choice (there is a statement about legend there). But in my case clicking on legend does not fire callback function when it is bound to “relayoutData” input. Other actions - like zooming - are triggering my function.
Is this possible to make such a function? In the function I need data allowing to identified clicked series (series name would be fine)
I’m using dash, dash-core-components == 0.21.0, dash-renderer == 0.11.3 and dash-html-components = 0.9.0