Skip to content

Missing label in the x-axis #2326

Answered by mbostock
spandl asked this question in Q&A
May 23, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

It’s missing because the x domain doesn’t include the start of the month; the data starts on the 2nd of the month rather than the 1st; drawing this tick would be (slightly) outside the bounds of your chart. You can set nice: "month" to extend the domain to month boundaries to force this tick to appear, but it will result in some blank space around the data.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@spandl
Comment options

Answer selected by spandl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants