Skip to content
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

fix #2722 - get the right traces in hist calc for cross-trace coupling #2724

Merged
merged 1 commit into from
Jun 11, 2018

Conversation

alexcjohnson
Copy link
Collaborator

@etpinard a quick one to fix #2722

@@ -435,6 +435,7 @@ function getConnectedHistograms(gd, trace) {
for(var i = 0; i < fullData.length; i++) {
var tracei = fullData[i];
if(tracei.type === 'histogram' &&
tracei.visible === true &&
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To match the condition above filtering out invisible traces. Interestingly the initial draw (if you just set visible: 'legendonly' on the first trace as of newPlot) works OK, though I suspect that in certain cases this will lead us to choose the wrong autobins... this fixes that potential problem as well.

@etpinard
Copy link
Contributor

Nicely done 💃

@alexcjohnson alexcjohnson merged commit 3c7f125 into patch-v1.38.3 Jun 11, 2018
@alexcjohnson alexcjohnson deleted the hist-calc-fix branch June 11, 2018 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants