pixelRound by Fil · Pull Request #2371 · observablehq/plot
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 209
Conversation
Given a continuous scale, returns a rounding function that snaps values to the coarsest precision that still distinguishes neighboring pixels. For temporal scales, this means utc or time intervals; for numeric scales, “nice” values = 10^x * {1, 2, 5}. For non-linear scales (log, pow, symlog, etc.) we compute precision locally.
This is a separate branch needed by both the dataless brush and the dataless crosshair
This was referenced
Feb 24, 2026
Fil
marked this pull request as ready for review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters