Copyright | (c) Tom Nielsen Marco Zocca 2019 |
---|---|
License | GPL-3 |
Maintainer | ocramz fripost org |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Bindings to the vega-lite visualization and infographics API.
See https://vega.github.io/ for usage details
Synopsis
- mkVegaHtml :: Value -> Html ()
- vegaEmbedHead :: Html ()
- vegaEmbedBodyScript :: Value -> Html ()
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>