Skip to content

Simplify isDiscrete and isContinuous #9596

@domoritz

Description

@domoritz

The methods in

vega-lite/src/type.ts

Lines 21 to 26 in 1a3e501

export function isContinuous(type: Type): type is 'quantitative' | 'temporal' {
return type === 'quantitative' || type === 'temporal';
}
export function isDiscrete(type: Type): type is 'ordinal' | 'nominal' {
return type === 'ordinal' || type === 'nominal';
}
can probably be replaced by calls to the methods of the same names in channeled.ts. The logic is different so we need to carefully review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Enhancement 🎉Help WantedGood tasks for contributors (try https://github.com/vega/vega-lite/issues/1486 first)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions