Skip to content
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

More indexToPoints #2162

Merged
merged 2 commits into from
Nov 16, 2017
Merged

More indexToPoints #2162

merged 2 commits into from
Nov 16, 2017

Conversation

etpinard
Copy link
Contributor

This PR computes @monfera 's brilliant indexToPoints map objects (first added in #2126) for sort and groupby transforms, in preparation for transform-compatible persistent selections in #2135 - which will use indexToPoints heavily 💪

More info of the topic in #2128.

cc @monfera @alexcjohnson

@etpinard etpinard added this to the v1.32.0 milestone Nov 15, 2017
Copy link
Contributor

@monfera monfera left a comment

Choose a reason for hiding this comment

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

Looks great! I also run tests with crossfilter event capture and it worked fine (rendering needs more work).


var indexToPoints = newTrace.transforms[state.transformIndex]._indexToPoints;
indexToPoints[indexCnts[groups[j]]] = originalPointsAccessor(j);
indexCnts[groups[j]]++;
Copy link
Contributor

Choose a reason for hiding this comment

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

Neat idea!

@monfera
Copy link
Contributor

monfera commented Nov 15, 2017

💃 great PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants