Keeping Scales to Whole Numbers in Plot

You’re not alone :slight_smile: Here’s the relevant issue Interval-aware default tick formats · Issue #932 · observablehq/plot · GitHub.

What you could do in the meantime is filter out the non-int ticks with:

tickFormat: d => d > Math.floor(d) ? "" : `${d}`
3 Likes