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

Allow mark channels to specify a default scale type #533

Closed
mbostock opened this issue Sep 5, 2021 · 1 comment
Closed

Allow mark channels to specify a default scale type #533

mbostock opened this issue Sep 5, 2021 · 1 comment
Labels
enhancement New feature or request question Further information is needed

Comments

@mbostock
Copy link
Member

mbostock commented Sep 5, 2021

Currently mark channels can specify a required scale type, such as barY’s x channel requiring a band scale; but what if mark channels could specify a default scale type that overrides data-based type inference? For example, the line and area marks are typically used with quantitative dimensions (and more specifically, x is often temporal). While it’s possible to use these marks with ordinal data, most of the time it’s a mistake caused by lack of typing in CSV. If these marks could default to quantitative/temporal instead of default to the data’s type, it might avoid a common mistake. Related #532.

@mbostock mbostock added enhancement New feature or request question Further information is needed labels Sep 5, 2021
@mbostock
Copy link
Member Author

I think this is sufficiently covered by the new warning system, though we could introduce a warning when a line or area is used with ordinal data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is needed
Projects
None yet
Development

No branches or pull requests

1 participant