Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Catch an plotly event from the plot's parent element

The situation is that I have a div and inside I generate more than 20 graphs. I don’t want to create a handler for each graph so I tried attaching the handler to the outside div, but when I used document.getElementById(...).on() I always got document.getElementById(...).on is not a function. So is there anyway that I can avoid adding handler to each individual graph?
P.s: I’m trying to use the plotly_hover event.

Not at the moment unfortunately.