Hello.
Iād like to find some examples for āon_changeā function for āScatterā plot. Just need to send some event when plot is changed (eg. series are hide) to trigger some function which will update another plot (eg. resolve average).
I tried to use it similarly to what Iāve found for āscatter.on_clickā but dunno how to get it work. However, this example https://plot.ly/python/click-events/
as well doesnāt work for my case, because I use āiplotā. I hope āon_changeā donāt worry about āiplotā.
Any suggestgions?
Later on, Iāve found I could use @callbacks with relayoutData
property.
@app.callback(Output('data-bars', 'figure'), [Input('data-lines', 'relayoutData')])
def upd_graph(reldata):
...
title = str(np.random.randn(1))
print(reldata)
return { 'data': data, 'layout': layout.update({'title': title}) }
Yes, it triggers events but doesnāt interact with legend. I get print
messages about tools activity but not while hiding series in my legend. Which property should I try?