plotlyhs-0.2: Haskell bindings to Plotly.js

Safe HaskellNone
LanguageHaskell2010

Graphics.Plotly

Description

Re-exports the Simple interface, the grammar of grpahics interface and parts of the base interface.

Synopsis

Documentation

data Marker #

Marker specification

Instances
Eq Marker # 
Instance details

Defined in Graphics.Plotly.Base

Methods

(==) :: Marker -> Marker -> Bool #

(/=) :: Marker -> Marker -> Bool #

Generic Marker # 
Instance details

Defined in Graphics.Plotly.Base

Associated Types

type Rep Marker :: * -> * #

Methods

from :: Marker -> Rep Marker x #

to :: Rep Marker x -> Marker #

ToJSON Marker # 
Instance details

Defined in Graphics.Plotly.Base

type Rep Marker # 
Instance details

Defined in Graphics.Plotly.Base

data ListOrElem a #

Constructors

List [a] 
All a 
Instances
Eq a => Eq (ListOrElem a) # 
Instance details

Defined in Graphics.Plotly.Base

Methods

(==) :: ListOrElem a -> ListOrElem a -> Bool #

(/=) :: ListOrElem a -> ListOrElem a -> Bool #

ToJSON a => ToJSON (ListOrElem a) # 
Instance details

Defined in Graphics.Plotly.Base

data Symbol #

Different types of markers

Constructors

Circle 
Square 
Diamond 
Cross 
Instances
Eq Symbol # 
Instance details

Defined in Graphics.Plotly.Base

Methods

(==) :: Symbol -> Symbol -> Bool #

(/=) :: Symbol -> Symbol -> Bool #

Show Symbol # 
Instance details

Defined in Graphics.Plotly.Base

ToJSON Symbol # 
Instance details

Defined in Graphics.Plotly.Base

data Color #

A color specification, either as a concrete RGB/RGBA value or a color per point.

Constructors

ColRGBA Int Int Int Int

use this RGBA color for every point in the trace

ColRGB Int Int Int

use this RGB color for every point in the trace

ColIx Int

use a different color index for each point

Instances
ToJSON Color # 
Instance details

Defined in Graphics.Plotly.Base

data TraceType #

What kind of plot type are we building - scatter (inluding line plots) or bars?

Constructors

Scatter 
Bar 

data Mode #

How should traces be drawn? (lines or markers)

Constructors

Markers 
Lines 
Instances
Show Mode # 
Instance details

Defined in Graphics.Plotly.Base

Methods

showsPrec :: Int -> Mode -> ShowS #

show :: Mode -> String #

showList :: [Mode] -> ShowS #

ToJSON [Mode] # 
Instance details

Defined in Graphics.Plotly.Base

catColors :: Eq a => [a] -> ListOrElem Value #

Assign colors based on any categorical value

data Line #

line specification

Constructors

Line 
Instances
Generic Line # 
Instance details

Defined in Graphics.Plotly.Base

Associated Types

type Rep Line :: * -> * #

Methods

from :: Line -> Rep Line x #

to :: Rep Line x -> Line #

ToJSON Line # 
Instance details

Defined in Graphics.Plotly.Base

type Rep Line # 
Instance details

Defined in Graphics.Plotly.Base

type Rep Line = D1 (MetaData "Line" "Graphics.Plotly.Base" "plotlyhs-0.2-GQw4xwBsKHSB8ZQAQEkWIM" False) (C1 (MetaCons "Line" PrefixI True) (S1 (MetaSel (Just "_linewidth") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Double)) :*: (S1 (MetaSel (Just "_linecolor") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Color)) :*: S1 (MetaSel (Just "_dash") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Dash)))))

data Fill #

Are we filling area plots from the zero line or to the next Y value?

Constructors

ToZeroY 
ToNextY 
Instances
Show Fill # 
Instance details

Defined in Graphics.Plotly.Base

Methods

showsPrec :: Int -> Fill -> ShowS #

show :: Fill -> String #

showList :: [Fill] -> ShowS #

ToJSON Fill # 
Instance details

Defined in Graphics.Plotly.Base

data Orientation #

Horizontal or Vertical orientation of bars

Constructors

Horizontal 
Vertical 

data Dash #

Dash type specification

Constructors

Solid 
Dashdot 
Dot 
Instances
Show Dash # 
Instance details

Defined in Graphics.Plotly.Base

Methods

showsPrec :: Int -> Dash -> ShowS #

show :: Dash -> String #

showList :: [Dash] -> ShowS #

ToJSON Dash # 
Instance details

Defined in Graphics.Plotly.Base

defMarker :: Marker #

default marker specification

data Trace #

A Trace is the component of a plot. Multiple traces can be superimposed.

Instances
Generic Trace # 
Instance details

Defined in Graphics.Plotly.Base

Associated Types

type Rep Trace :: * -> * #

Methods

from :: Trace -> Rep Trace x #

to :: Rep Trace x -> Trace #

ToJSON Trace # 
Instance details

Defined in Graphics.Plotly.Base

type Rep Trace # 
Instance details

Defined in Graphics.Plotly.Base

data Axis #

Options for axes

Instances
Generic Axis # 
Instance details

Defined in Graphics.Plotly.Base

Associated Types

type Rep Axis :: * -> * #

Methods

from :: Axis -> Rep Axis x #

to :: Rep Axis x -> Axis #

ToJSON Axis # 
Instance details

Defined in Graphics.Plotly.Base

type Rep Axis # 
Instance details

Defined in Graphics.Plotly.Base

scatter :: Trace #

an empty scatter plot

bars :: Trace #

an empty bar plot

data Margin #

Options for Margins.

Constructors

Margin 
Instances
Generic Margin # 
Instance details

Defined in Graphics.Plotly.Base

Associated Types

type Rep Margin :: * -> * #

Methods

from :: Margin -> Rep Margin x #

to :: Rep Margin x -> Margin #

ToJSON Margin # 
Instance details

Defined in Graphics.Plotly.Base

type Rep Margin # 
Instance details

Defined in Graphics.Plotly.Base

data Barmode #

How different bar traces be superimposed? By grouping or by stacking?

Constructors

Stack 
Group 
Instances
Show Barmode # 
Instance details

Defined in Graphics.Plotly.Base

ToJSON Barmode # 
Instance details

Defined in Graphics.Plotly.Base

data Layout #

options for the layout of the whole plot

thinMargins :: Margin #

some good values for margins

titleMargins :: Margin #

some good values for margins

data Plotly #

A helper record which represents the whole plot

Constructors

Plotly 

Fields

Instances
ToMarkup Plotly # 
Instance details

Defined in Graphics.Plotly.Blaze

ToHtml Plotly # 
Instance details

Defined in Graphics.Plotly.Lucid

Methods

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

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

defLayout :: Layout #

a defaultlayout

plotly :: Text -> [Trace] -> Plotly #

helper function for building the plot.