VegaLite.from_json

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

Specs

from_json(String.t()) :: t()

Parses the given Vega-Lite JSON specification and wraps in the VegaLite struct for further processing.

Examples

Vl.from_json("""
{
  "data": { "url": "https://vega.github.io/editor/data/cars.json" },
  "mark": "point",
  "encoding": {
    "x": { "field": "Horsepower", "type": "quantitative" },
    "y": { "field": "Miles_per_Gallon", "type": "quantitative" }
  }
}
""")

See the docs for more details.