8000 Make hover spikes work when no tick labels are present by etpinard · Pull Request #1980 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Make hover spikes work when no tick labels are present #1980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 5, 2017
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fill in dummy boundingBox object
  • Loading branch information
etpinard committed Sep 5, 2017
commit b36392e6d658618961301cafbed55833e1214097
20 changes: 18 additions & 2 deletions src/plots/cartesian/axes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2023,12 +2023,28 @@ axes.doTicks = function(gd, axid, skipTitle) {
pos = ax.anchor === 'free' ?
gs.t + gs.h * (1 - ax.position) :
gs.t + gs.h * (1 - ax._anchorAxis.domain[{bottom: 0, top: 1}[ax.side]]);
ax._boundingBox = {top: pos, bottom: pos};

ax._boundingBox = {
top: pos,
bottom: pos,
left: ax._offset,
rigth: ax._offset + ax._length,
width: ax._length,
height: 0
};
} else {
pos = ax.anchor === 'free' ?
gs.l + gs.w * ax.position :
gs.l + gs.w * ax._anchorAxis.domain[{left: 0, right: 1}[ax.side]];
ax._boundingBox = {left: pos, right: pos};

ax._boundingBox = {
left: pos,
right: pos,
bottom: ax._offset + ax._length,
top: ax._offset,
height: ax._length,
width: 0
};
}
}

Expand Down
0