-
Notifications
You must be signed in to change notification settings - Fork 185
Shorthand syntax for d3.piecewise #1636
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
Comments
I feel like maybe I’ve changed my mind. Given that there is a clear way to handle domains and ranges of different lengths, maybe we should just allow it instead of dropping the extra elements and warning. It does change the behavior of existing plots, but respecting the extra elements is probably what the author intended; otherwise, why specify them? And seeing the change in behavior is more obvious than a warning. So… yeah. Maybe we just always do this? |
as discussed in #1633 it would be nice to provide a shorthand syntax for piecewise/polylinear scales with a simple domain [min, max].
Instead of
or
you would then just say
something could be interpolate: "piecewise", maybe?
The text was updated successfully, but these errors were encountered: