lucid-extras-0.2: Generate more HTML with Lucid

Safe HaskellNone
LanguageHaskell2010

Lucid.VegaLite

Synopsis

Documentation

vegaEmbedHead :: Html () Source #

The statements for downloading the vega javascript blobs from the CDN. Must be in the document <HEAD>

vegaEmbedBodyScript :: Value -> Html () Source #

The statement for embedding the vega JSON payload and initializing vega-embed. Must be in the <BODY> block and referenced by a <div id="vis"></div>

mkVegaHtml :: Value -> Html () Source #

Construct a HTML page that can render a vega-lite plot. The plot will be rendered by the vega-embed library.

NB: the Value parameter must contain a vega-lite JSON payload