Skip to content

Conversation

@alexcjohnson
Copy link
Collaborator

@etpinard a quick one to fix #2722

@etpinard etpinard added bug something broken status: reviewable labels Jun 11, 2018
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

Labels

bug something broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants