Skip to content

Alternative way to specify time unit #6351

Open

Description

Vega supports arrays for interval time units. For example ["year", "month", "date"]. In Vega-Lite, we support strings yearmonthdate since they are easier to type and validate. However, it may make sense to support the array syntax. One limitation of our string approach is that we don't support all combinations of time units (e.g. yearseconds). We don't want to just support string since we would lose the ability to validate. However, adding the array syntax would introduce another way to specify interval time units.

@kanitw, @arvind and @haldenl probably have opinions here.

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions