vega-lite-api

vl.year(field, as)

A time unit operation for year.

year Method Overview

year API Reference

# year.as(value)

The output field to write the timeUnit value.

# year.equals(equal)

Logical equals (==) comparison.

# year.field(value)

The data field to apply time unit.

# year.gt(gt)

Logical greater than (>) comparison.

# year.gte(gte)

Logical greater than or equal to (>=) comparison.

# year.inRange(…range)

Logical value in range test.

# year.lt(lt)

Logical less than (<) comparison.

# year.lte(lte)

Logical less than or equal to (<=) comparison.

# year.oneOf(…oneOf)

Logical set membership test.

# year.timeUnit(value)

The timeUnit.

# year.valid(valid)

Logical valid value test.