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

Enable imputation keyvals over time units #9490

Open
dwootton opened this issue Dec 2, 2024 · 0 comments
Open

Enable imputation keyvals over time units #9490

dwootton opened this issue Dec 2, 2024 · 0 comments

Comments

@dwootton
Copy link
Contributor

dwootton commented Dec 2, 2024

Seems like imputation over time units is a somewhat frequently requested feature. Would there by any issue with allowing the impute transform's keyVals to take arguments for generating either a numeric sequence or a temporal sequence?

As it currently is set up, impute's keyVals can only by numbers that are then passed into a sequence expression. If the key field is a temporal field, we could instead change it to compile to a timeSequence that could compile to something like this:
Vega spec of temporal imputation

Could be particularly useful when the domain can't be easily transformed into an ordinal domain (ie looking at month time unit over a multi-year period) while wanting to preserve temporal scaling.

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

No branches or pull requests

1 participant