-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
histogram2d fixes #3922
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
histogram2d fixes #3922
Conversation
- this fixes some shared histogram2d (via bingroup) edge cases - this fixes a performance regression from #3845
- this removed the annoying `x: NaN` from histogram2d hover labels
@@ -232,8 +232,8 @@ function calcAllAutoBins(gd, trace, pa, mainData, _overlayEdgeCase) { | |||
|
|||
// all but the first trace in this group has already been marked finished | |||
// clear this flag, so next time we run calc we will run autobin again | |||
if(trace._autoBinFinished) { | |||
delete trace._autoBinFinished; | |||
if(trace['_' + mainData + 'autoBinFinished']) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixup from #3909
As now both histogram
and histogram2d*
traces go through calcAllAutoBins
, we need to split the "has autoBin finished` logic into x and y values.
@@ -0,0 +1,756 @@ | |||
{ | |||
"data": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,756 @@ | |||
{ | |||
"data": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done. |
@plotly/plotly_js This PR starts with a fix for #3909 then follow-up with two more
histogram2d*
bug fixes.