VegaLite.data

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

Specs

data(t(), keyword()) :: t()

Sets data properties in the specification.

Defining the data source is usually the first step when building a graphic. For most use cases it's preferable to use more specific functions like data_from_url/3, data_from_values/3, or data_from_series/3.

All provided options are converted to data properties.

Examples

Vl.new()
|> Vl.data(sequence: [start: 0, stop: 12.7, step: 0.1, as: "x"])
|> ...

See the docs for more details.