Skip to content
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

fix tickFormat type inference for empty domain #2232

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

mbostock
Copy link
Member

@mbostock mbostock commented Nov 14, 2024

Fixes #2231. If an (ordinal) domain is empty, ignore the tickFormat since we can’t infer whether the data is temporal or quantitative, and instead use the default format. This shouldn’t affect the axis as we assume the tick format won’t be used anyway because the domain is empty and hence there can’t be any ticks.

@mbostock

This comment was marked as resolved.

@mbostock mbostock requested a review from Fil November 15, 2024 00:42
@mbostock mbostock marked this pull request as ready for review November 15, 2024 00:42
@mbostock mbostock enabled auto-merge (squash) November 15, 2024 00:44
@mbostock mbostock merged commit ff7d83c into main Nov 15, 2024
1 check passed
@mbostock mbostock deleted the mbostock/fix-empty-domain branch November 15, 2024 07:45
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.

Temporal tickFormat for facet reported as invalid if dataset is empty
2 participants