Position hover label in the vertical middle of bar


Is there a way to position hover labels in the vertical middle of bars?

It seems they always appear at the top of bars.

Best regards,


There’s no easy way I’m afraid.

You can try using Plotly.Fx.hover to display custom hover labels, exactly where you want them.

See https://plot.ly/javascript/hover-events/#coupled-hover-events for an example.