VegaLite.transform

You're seeing just the function transform, go back to VegaLite module for more information.

Specs

transform(t(), keyword()) :: t()

Adds a transformation to the specification.

Transformation describes an operation on data, like calculating new fields, aggregating or filtering.

All provided options are converted to transform properties.

Examples

Vl.new()
|> Vl.data_from_values(...)
|> Vl.transform(calculate: "sin(datum.x)", as: "sin_x")
|> ...

Vl.new()
|> Vl.data_from_values(...)
|> Vl.transform(filter: "datum.height > 150")
|> ...

Vl.new()
|> Vl.data_from_values(...)
|> Vl.transform(regression: "price", on: "date")
|> ...

See the docs for more details.