Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/components/fx/hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,17 @@ function createHoverText(hoverData, opts) {
(outerTop - tbb.top + HOVERARROWSIZE + HOVERTEXTPAD)));

lx = xa._offset + (c0.x0 + c0.x1) / 2;
ly = ya._offset + (xa.side === 'top' ? 0 : ya._length);

// show the common label at the bottom subplot if hoversubplots is set to axis
if (fullLayout.hoversubplots === 'axis')
{
var bottom_ya = fullLayout._plots.xy.yaxis;
ly = bottom_ya._offset + (xa.side === 'top' ? 0 : bottom_ya._length);
}
else
{
ly = ya._offset + (xa.side === 'top' ? 0 : ya._length);
}

var halfWidth = tbb.width / 2 + HOVERTEXTPAD;

Expand Down