vega-lite-api

vl.timeUnit(timeUnit, field)

Discretize date/time values into meaningful intervals.

timeUnit Method Overview

timeUnit API Reference

# timeUnit.as(value)

The output field to write the timeUnit value.

# timeUnit.field(value)

The data field to apply time unit.

# timeUnit.timeUnit(value)

The timeUnit.