Skip to content

Fix scattergl mising points plot and react - #4323

Merged
archmoj merged 3 commits into
masterfrom
bump-point-cluster-3.1.8
Oct 31, 2019
Merged

Fix scattergl mising points plot and react#4323
archmoj merged 3 commits into
masterfrom
bump-point-cluster-3.1.8

Conversation

@archmoj

Copy link
Copy Markdown
Contributor

Fix#2334, #3405 and #3751.
Bump point cluster 3.1.8, regl-scatter2d 3.1.7 and regl-splom 1.0.8 and update snap according to data length.
@plotly/plotly_js

- bump regl-scatter2d 3.1.7
- bump regl-splom 1.0.8
@archmojarchmoj added bug something broken status: reviewable regression this used to work labels Oct 31, 2019
Comment threadtest/jasmine/tests/scattergl_test.js Outdated
var x = [];
var y = [];
for(var i = 0; i < num; i++) {
x.push(Math.random());

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Random numbers are dangerous in tests. If you really need this to look like random numbers, you can use Lib.pseudoRandom() (preceded by Lib.seedPseudoRandom()) as a repeatable alternative.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexcjohnson thanks for the review.
Good call! Addressed for scattergl_test and other jasmine tests in 902b084.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful, thank you for extending that to the rest of the test suite!

@alexcjohnsonalexcjohnson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, patch away! 💃

@archmoj
archmoj merged commit 405b9ed into masterOct 31, 2019
@archmoj
archmoj deleted the bump-point-cluster-3.1.8 branch October 31, 2019 18:55
if(opts.marker) {
opts.marker.snap = stash.tree || TOO_MANY_POINTS;
}
if(opts.marker) opts.marker.snap = len;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha - there is it!

That's the piece I was missing. Thank you very much @archmoj - this is probably the best bug fix for the library in 2019.

@etpinard

Copy link
Copy Markdown
Contributor

I'm curious @archmoj does the new mock gl2d_clustering take a long time to render?

@archmoj

Copy link
Copy Markdown
ContributorAuthor

I'm curious @archmoj does the new mock gl2d_clustering take a long time to render?

I don't think so. Let me create a codepen to investigate the diff.
@etpinard thanks for the review.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugsomething brokenregressionthis used to work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing data in scattergl plot when I go juste above 10000 points (regression)

3 participants

@archmoj@etpinard@alexcjohnson