Finally got it to work!
-
@monishaj93 I can’t use
app.layout[plot_id]. For meapp.layoutis a function,app.layout()is the home page, and anyway this seems unlikely to work for dynamic layouts/plots. -
A possible related solution is from this post, to have the figure as a
Stateof the callback then use the samefigure['data'][curve_number]['name']trick. Someone else just stumbledon this as well, code here -
@caiyij I didn’t get any
textin my clickData events at first (dash 1.10), but then found this related post and changed fromtext=df.columns[col]totext=[df.columns[col]] * df.index.sizewhich made it work
The same is possible usingcustomdataif you need to have another use fortext.