VegaLite.projection

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

Specs

projection(
  t(),
  keyword()
) :: t()

Adds a projection spec to the specification.

Projection maps longitude and latitude pairs to x, y coordinates.

Examples

Vl.new()
|> Vl.data_from_values(...)
|> Vl.projection(type: :albers_usa)
|> Vl.mark(:circle)
|> Vl.encode_field(:longitude, "longitude", type: :quantitative)
|> Vl.encode_field(:latitude, "latitude", type: :quantitative)

See the docs for more details.