Statwise.Visualization.VegaLite (Statwise v0.1.0)

Copy Markdown View Source

Converts visualization plots into Vega-Lite-compatible maps and optional renderer structs.

Summary

Functions

Converts a plot into encoded Vega-Lite JSON.

Converts a plot into a Kino.VegaLite widget.

Converts a plot into a VegaLite struct.

Functions

to_json(plot, opts \\ [])

Converts a plot into encoded Vega-Lite JSON.

Requires Jason to be available at runtime.

to_kino(plot, opts \\ [])

Converts a plot into a Kino.VegaLite widget.

Requires Jason, VegaLite, and Kino.VegaLite to be available at runtime.

to_spec(plot, opts \\ [])

to_vega_lite_plot(plot, opts \\ [])

Converts a plot into a VegaLite struct.

Requires Jason and VegaLite to be available at runtime.