| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Plotly.Lucid
Contents
Description
Plot traces to html using lucid
Example code:
plotHtml :: Html ()
plotHtml = toHtml $ plotly "myDiv" [trace] & layout . title ?~ "my plot"
& layout . width ?~ 300
where trace is a value of type Trace
Documentation
plotlyCDN :: forall (m :: Type -> Type). Monad m => HtmlT m () Source #
script tag to go in the header to import the plotly.js javascript from the official CDN
plotlyJS :: forall (m :: Type -> Type). Monad m => Plotly -> HtmlT m () Source #
Activate a plot defined by a Plotly value
plotlyDiv :: forall (m :: Type -> Type). Monad m => Plotly -> HtmlT m () Source #
Create a div for a Plotly value