Skip to content

Extend histogram bin auto-shifting algorithm to dates #1151

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

Closed
alexcjohnson opened this issue Nov 15, 2016 · 1 comment
Closed

Extend histogram bin auto-shifting algorithm to dates #1151

alexcjohnson opened this issue Nov 15, 2016 · 1 comment
Labels
feature something new
Milestone

Comments

@alexcjohnson
Copy link
Collaborator

We have an algorithm that shifts numeric histogram bins if a lot of the data is near the bin edges - for example, if all data are integers, we'll shift the bin edges to half integers. We should extend this to dates so that if for example all data is on the first of months, the bin edges get put at the middle of months.

This goes along with the desire to show more meaningful bin position hover labels - instead of a single x value as we do with bars, we want to show either both ends (perhaps clipped to what's actually in the bin?), or the single value represented if there is only one. Not sure if we have an issue for that already...

@etpinard etpinard added the feature something new label Nov 15, 2016
@etpinard etpinard added this to the Better dates milestone Nov 15, 2016
@alexcjohnson
Copy link
Collaborator Author

See TODOs added to histogram(2d)?_test.js in #1186

alexcjohnson added a commit that referenced this issue Nov 26, 2016
to avoid all data lying ambiguously on bin edges
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

No branches or pull requests

2 participants