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

Inconsistent Plot time bins #1025

Closed
mkfreeman opened this issue Aug 9, 2022 · 2 comments · Fixed by d3/d3-time#58
Closed

Inconsistent Plot time bins #1025

mkfreeman opened this issue Aug 9, 2022 · 2 comments · Fixed by d3/d3-time#58
Labels
bug Something isn’t working

Comments

@mkfreeman
Copy link
Contributor

Describe the bug
Plot histograms for dates can sometimes have differently sized bins which leads to awkwardly inconsistent "skinny" bars.

To Reproduce
See this notebook.
Screen Shot 2022-08-09 at 12 16 43 PM

@mbostock
Copy link
Member

mbostock commented Dec 1, 2022

This bug is specific to the 2 days time interval generated by d3.utcTicks, and should be fixed in d3-time.

https://github.com/d3/d3-time/blob/main/README.md#utcTicks

@mbostock mbostock added the bug Something isn’t working label Dec 1, 2022
@mbostock
Copy link
Member

mbostock commented Dec 1, 2022

Related d3/d3-scale#245.

Alternative day interval: https://observablehq.com/d/906f777c9f2f0701.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants