In order to have a fully-custom tooltip like the one above, you’ll need to add a handler for the plotly_hover
event where you would add a custom <div>
to DOM and position it using the event data.
Some useful info: https://plot.ly/javascript/hover-events/