8000 Don't try to draw spikeline if the axis isn't on the chart. by rpaskowitz · Pull Request #1604 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Don't try to draw spikeline if the axis isn't on the chart. #1604

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

Closed
wants to merge 2 commits into from
Closed
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
Next Next commit
Don't try to draw spikeline if the axis isn't on the chart.
  • Loading branch information
rpaskowitz committed Apr 19, 2017
commit 4248487bea76973f5389c272c0d21ca0ff988bd0
4 changes: 2 additions & 2 deletions src/plots/cartesian/graph_interact.js
Original file line number Diff line number Diff line change
Expand Up @@ -864,8 +864,8 @@ function createSpikelines(hoverData, opts) {
var c0 = hoverData[0];
var xa = c0.xa;
var ya = c0.ya;
var showX = xa.showspikes;
var showY = ya.showspikes;
var showX = xa.showspikes && xa.visible && (xa.showline || xa.showticklabels);
var showY = ya.showspikes && ya.visible && (ya.showline || ya.showticklabels);

// Remove old spikeline items
container.selectAll('.spikeline').remove();
Expand Down
0