You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the HTML file generated by export_to_html() is not using the right div for the event myPlot.on('plotly_click', function(data)
The plot itself is embed in a div that does not propagate the click to the plotly graph.
Changing the query selector from var myPlot = document.querySelectorAll('div')[0]; to var myPlot = document.querySelectorAll('div')[1]; would fix the issue and the pop up describing the closest solution would work again. But maybe targeting the div by looking at the class name plotly-graph-div would also be a good solution.
Best regards
The text was updated successfully, but these errors were encountered:
Hi,
It seems that the HTML file generated by
export_to_html()
is not using the right div for the eventmyPlot.on('plotly_click', function(data)
The plot itself is embed in a div that does not propagate the click to the plotly graph.
Changing the query selector from
var myPlot = document.querySelectorAll('div')[0];
tovar myPlot = document.querySelectorAll('div')[1];
would fix the issue and the pop up describing the closest solution would work again. But maybe targeting the div by looking at the class name plotly-graph-div would also be a good solution.Best regards
The text was updated successfully, but these errors were encountered: