-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
gl2d non-visible traces improvements #1300
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
- to optimize 'visible' toggling - and fix a few bugs with data-less scattergl traces
- to make sure they don't make Plotly.plot crash
"x": [] | ||
}, | ||
{ | ||
"type": "scattergl" |
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.
and one each that has data but visible: false || 'legendonly'
?
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.
done in 2563f17
How hard would it be to test toggling one of these traces on/off, maybe by clicking the legend? Might be overkill given the tests you do have... |
Not hard. At least it we only test the corresponding We already have one for gl3d here. I added one for gl2d in a587f8d |
Those tests are fine. No need to do an actual click. |
fixes #1298
Previously scattergl traces with
visible: false
orvisible: 'legendonly'
weren't filtered out of theconvert
step where several methods assumed non-emptytrace.x
andtrace.y
.This PR add a third scattergl update path (along side the current fancy and fast paths) for
visible !== true
traces where gl-vis objects are updated withFloat62Array(0)
as data.