-
Couldn't load subscription status.
- Fork 197
fix facet channel sort with transform #1316
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
4ef3f7c to
92fee30
Compare
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.
I've checked that it works well in conjunction with #1315.
Build: https://observablehq.com/@observablehq/plot-sort-1315-1316
43aaeb0 to
35922e6
Compare
| if (facets === undefined && data != null) facets = [range(data)]; | ||
| const originalFacets = facets; | ||
| if (this.transform != null) ({facets, data} = this.transform(data, facets)), (data = arrayify(data)); | ||
| if (facets !== undefined) facets.original = originalFacets; // needed up read facetChannels |
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.
“needed up read facetChannels” 🤔
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.
"needed to reindex the facet channel" (?)
or remove
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.
Ah ha. I think I meant “needed to read facetChannels”.
* fix facet channel sort with transform * marginLeft—less minimalist, but more readable * rule y = 0 --------- Co-authored-by: Philippe Rivière <[email protected]>
Fixes #840.