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

Add prettyRange? (Or ticks?) #26

Closed
mbostock opened this issue Dec 10, 2015 · 1 comment
Closed

Add prettyRange? (Or ticks?) #26

mbostock opened this issue Dec 10, 2015 · 1 comment
Assignees

Comments

@mbostock
Copy link
Member

It might be nice to take the linear ticks implementation from d3-scale and put it here in d3-array. Then the histogram could take the suggested threshold count and compute nice rounded thresholds, rather than simply dividing the domain uniformly.

(This would be similar to how R automatically uses pretty when the histogram breaks are specified as a count hint.)

@mbostock
Copy link
Member Author

Do we need a tickStep method too, say for nicing domains?

Edit: Yes.

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

1 participant