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

scale.nice should be sticky, like scale.round? #80

Open
mbostock opened this issue Oct 11, 2016 · 1 comment
Open

scale.nice should be sticky, like scale.round? #80

mbostock opened this issue Oct 11, 2016 · 1 comment
Milestone

Comments

@mbostock
Copy link
Member

Currently, scale.nice only modifies the scale’s current domain; if you set a new domain, it won’t be niced. However, perhaps scale.nice should function more like scale.round, and remember the nice setting, such that any new domain that is set is automatically niced.

However, this would not be a backwards-compatible change, since it would affect the behavior of scale.nice() with no arguments: it would now return the current nice count, which would default to undefined indicating that the scale is not niced.

@Fil
Copy link
Member

Fil commented Dec 17, 2016

👍

@mbostock mbostock self-assigned this Mar 6, 2017
@mbostock mbostock added this to the 2.0 milestone Oct 26, 2017
@mbostock mbostock removed their assignment Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants