plotlyhs-0.2.1: Haskell bindings to Plotly.js

Safe HaskellNone
LanguageHaskell2010

Graphics.Plotly.Simple

Description

Functions to build Traces from standard data. Generated traces can still be customized with lenses.

Synopsis

Documentation

scatterPlot :: (ToJSON a, ToJSON b) => [(a, b)] -> Trace Source #

Generate a scatterplot from pairs

linePlot :: (ToJSON a, ToJSON b) => [(a, b)] -> Trace Source #

Generate a line plot from pairs

hbarChart :: [(Text, Double)] -> Trace Source #

Generate a horizontal bar chart from pairs of text and value.

vbarChart :: [(Text, Double)] -> Trace Source #

Generate a horizontal bar chart from pairs of text and value.

fanPlot :: Double -> [(Double, (Double, Double))] -> Trace Source #

Generate a fan plot with a given width in standard deviations and (x,(y,sd)) data