Skip to content

allow marks to override channel projection #1171

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

Merged
merged 7 commits into from
Dec 7, 2022
Merged

Conversation

mbostock
Copy link
Member

@mbostock mbostock commented Dec 7, 2022

This will allow the line mark to opt-out of the default projection of channels, such that it can then apply the projection automatically during render (if available). This will allow us to support curve: "auto" where we decide at render time to use the projection.

Fixes #1165.

@mbostock mbostock requested a review from Fil December 7, 2022 19:21
@mbostock mbostock marked this pull request as ready for review December 7, 2022 19:36
Copy link
Contributor

@Fil Fil left a comment

Choose a reason for hiding this comment

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

awesome that we don't even a keyword for "projected" anymore

Co-authored-by: Philippe Rivière <[email protected]>
@mbostock mbostock merged commit c6a49aa into main Dec 7, 2022
@mbostock mbostock deleted the mbostock/mark-project branch December 7, 2022 20:39
chaichontat pushed a commit to chaichontat/plot that referenced this pull request Jan 14, 2024
* allow marks to override channel projection

* simplify

* curve: "auto" instead of "projected"

* simplify

* Update README

* Update README

* Apply suggestions from code review

Co-authored-by: Philippe Rivière <[email protected]>

Co-authored-by: Philippe Rivière <[email protected]>
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.

Line should use the projection by default, if available
2 participants