plotlyhs-0.2: Haskell bindings to Plotly.js

Safe HaskellNone
LanguageHaskell2010

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

Synopsis

Documentation

plotlyCDN :: Monad m => HtmlT m () Source #

script tag to go in the header to import the plotly.js javascript from the official CDN

plotlyJS :: Monad m => Plotly -> HtmlT m () Source #

Activate a plot defined by a Plotly value

plotlyDiv :: Monad m => Plotly -> HtmlT m () Source #

Create a div for a Plotly value

Orphan instances

ToHtml Plotly Source # 

Methods

toHtml :: Monad m => Plotly -> HtmlT m () #

toHtmlRaw :: Monad m => Plotly -> HtmlT m () #