add unixDay interval by mbostock · Pull Request #58 · d3/d3-time

Conversation

@mbostock

Adds a d3.unixDay time interval as described in d3/d3-scale#245, and adopts it for d3.utcTicks in place of d3.utcDay such that ticks are always uniformly spaced.

Fixes observablehq/plot#1025.

Fil

Fil approved these changes Dec 1, 2022

@Fil Fil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 happier histograms

@mbostock

Hmm, this fixes d3.utcTicks, but doesn’t help d3.timeTicks. Do we need an equivalent of d3.unixDay for local time, too?

2 participants

@mbostock @Fil