-
-
Notifications
You must be signed in to change notification settings - Fork 2k
propagate WebGL traces with marker & line color arrays to hover labels #4867
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
Conversation
|
hi, |
@nasreddineskandrani |
src/traces/scatter3d/convert.js
Outdated
|
|
||
| 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]>
alexcjohnson
left a comment
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).colorwith/withoutcolorscale.It also fixes display of point colors used in
scattergl(marker|line).colorarray (i.e. withoutcolorscale).TODO:
@plotly/plotly_js