lucid-extras-0.2.2: Generate more HTML with Lucid - Bootstrap, Rdash, Vega-Lite, Leaflet JS, Email.

Copyright(c) Tom Nielsen Marco Zocca 2019
LicenseGPL-3
Maintainerocramz fripost org
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Lucid.VegaLite

Contents

Description

Bindings to the vega-lite visualization and infographics API.

See https://vega.github.io/ for usage details

Synopsis

Standalone

mkVegaHtml :: Value -> Html () Source #

Construct a standalone 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

Utilities

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>