Safe Haskell | None |
---|---|
Language | Haskell2010 |
Plot traces to html using blaze-html
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
script
tag to go in the header to import the plotly.js javascript from the official CDN