-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
propagate WebGL traces with marker & line color arrays to hover labels #4867
Conversation
hi, |
@nasreddineskandrani |
src/traces/scatter3d/convert.js
Outdated
@@ -345,6 +345,20 @@ function arrayToColor(color) { | |||
return null; | |||
} | |||
|
|||
function arrayToColor(colors) { | |||
if(!Lib.isArrayOrTypedArray(colors)) { | |||
return _arrayToColor(colors); |
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.
return null
here and avoid the outer isArrayOrTypedArray
test in _arrayToColor
?
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.
Good call. Done in 33fd07d.
@archmoj looks good - just a test as you mention, then this should be ready! |
Co-authored-by: Alex Johnson <[email protected]>
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.
Looks great! 💃
Addressing #2953 | demo.
This PR is a fix for displaying point colors set by
scatter3d
(marker|line).color
with/withoutcolorscale
.It also fixes display of point colors used in
scattergl
(marker|line).color
array (i.e. withoutcolorscale
).TODO:
@plotly/plotly_js