Skip to content

implicit zero #2332

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

implicit zero #2332

wants to merge 1 commit into from

Conversation

mbostock
Copy link
Member

Fixes #2331. Breaks a bunch of tests, of course. And should probably only apply to positional scales, not to (e.g.) color? And having an implicit rule would also be nice. Is this too opinionated?

@mbostock mbostock requested a review from Fil June 19, 2025 02:38
@Fil
Copy link
Contributor

Fil commented Jun 19, 2025

I don't mind it being applied to color as well, in the linear case. But it's probably less important.

Adding a default rule seems a tad too opinionated. The new visible tick at 0 is enough to ground the chart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include zero in the domain of default positional scales if it's "almost" there?
2 participants