plotly-hs-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Graphics.Plotly.Internal

Description

Internal Functions and Types for Plotly Plots in Haskell

Synopsis

Documentation

omitNulls :: [Pair] -> [Pair] Source #

prependColor :: [[Double]] -> Int -> [[Double]] Source #

Prepend Color Column to Parallel Coordinate Plot

type Script = ByteString Source #

Internal Type Alias

toHtml :: Script -> ByteString Source #

Takes a Script and inserts it into the default HTML template

data Margin Source #

Layout Margins

Constructors

Margin 

Fields

  • l :: !Int

    Left Margin

  • r :: !Int

    Right Margin

  • b :: !Int

    Bottom Margin

  • t :: !Int

    Top Margin

Instances

Instances details
Eq Margin Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

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

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

Show Margin Source # 
Instance details

Defined in Graphics.Plotly.Internal

Generic Margin Source # 
Instance details

Defined in Graphics.Plotly.Internal

Associated Types

type Rep Margin :: Type -> Type #

Methods

from :: Margin -> Rep Margin x #

to :: Rep Margin x -> Margin #

ToJSON Margin Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: Margin -> Value

toEncoding :: Margin -> Encoding

toJSONList :: [Margin] -> Value

toEncodingList :: [Margin] -> Encoding

type Rep Margin Source # 
Instance details

Defined in Graphics.Plotly.Internal

type Rep Margin = D1 ('MetaData "Margin" "Graphics.Plotly.Internal" "plotly-hs-0.1.0.0-5GqvvACHt0P1rkfhVJsYpr" 'False) (C1 ('MetaCons "Margin" 'PrefixI 'True) ((S1 ('MetaSel ('Just "l") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "r") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "b") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "t") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int))))

data Layout Source #

Layout for Plots

Constructors

Layout 

Fields

Instances

Instances details
Show Layout Source # 
Instance details

Defined in Graphics.Plotly.Internal

Generic Layout Source # 
Instance details

Defined in Graphics.Plotly.Internal

Associated Types

type Rep Layout :: Type -> Type #

Methods

from :: Layout -> Rep Layout x #

to :: Rep Layout x -> Layout #

ToJSON Layout Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: Layout -> Value

toEncoding :: Layout -> Encoding

toJSONList :: [Layout] -> Value

toEncodingList :: [Layout] -> Encoding

type Rep Layout Source # 
Instance details

Defined in Graphics.Plotly.Internal

data AxisType Source #

Axis Type

Constructors

Linear

Linear Axis (default)

Log

Logarithmic Axis

Date

Date Axis

Category

Categorical Axis

MultiCategory

Multi Category Axis (?)

Instances

Instances details
Eq AxisType Source # 
Instance details

Defined in Graphics.Plotly.Internal

Show AxisType Source # 
Instance details

Defined in Graphics.Plotly.Internal

Generic AxisType Source # 
Instance details

Defined in Graphics.Plotly.Internal

Associated Types

type Rep AxisType :: Type -> Type #

Methods

from :: AxisType -> Rep AxisType x #

to :: Rep AxisType x -> AxisType #

ToJSON AxisType Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: AxisType -> Value

toEncoding :: AxisType -> Encoding

toJSONList :: [AxisType] -> Value

toEncodingList :: [AxisType] -> Encoding

type Rep AxisType Source # 
Instance details

Defined in Graphics.Plotly.Internal

type Rep AxisType = D1 ('MetaData "AxisType" "Graphics.Plotly.Internal" "plotly-hs-0.1.0.0-5GqvvACHt0P1rkfhVJsYpr" 'False) ((C1 ('MetaCons "Linear" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Log" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Date" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Category" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MultiCategory" 'PrefixI 'False) (U1 :: Type -> Type))))

data Axis Source #

Axis Layout

Constructors

Axis 

Fields

Instances

Instances details
Show Axis Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

showsPrec :: Int -> Axis -> ShowS #

show :: Axis -> String #

showList :: [Axis] -> ShowS #

Generic Axis Source # 
Instance details

Defined in Graphics.Plotly.Internal

Associated Types

type Rep Axis :: Type -> Type #

Methods

from :: Axis -> Rep Axis x #

to :: Rep Axis x -> Axis #

ToJSON Axis Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: Axis -> Value

toEncoding :: Axis -> Encoding

toJSONList :: [Axis] -> Value

toEncodingList :: [Axis] -> Encoding

type Rep Axis Source # 
Instance details

Defined in Graphics.Plotly.Internal

type Rep Axis = D1 ('MetaData "Axis" "Graphics.Plotly.Internal" "plotly-hs-0.1.0.0-5GqvvACHt0P1rkfhVJsYpr" 'False) (C1 ('MetaCons "Axis" 'PrefixI 'True) ((S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String) :*: S1 ('MetaSel ('Just "showGrid") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "zeroLine") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AxisType))))

data Line Source #

Parallel Coordinate Lines

Constructors

Line 

Fields

Instances

Instances details
Show Line Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

showsPrec :: Int -> Line -> ShowS #

show :: Line -> String #

showList :: [Line] -> ShowS #

Generic Line Source # 
Instance details

Defined in Graphics.Plotly.Internal

Associated Types

type Rep Line :: Type -> Type #

Methods

from :: Line -> Rep Line x #

to :: Rep Line x -> Line #

ToJSON Line Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: Line -> Value

toEncoding :: Line -> Encoding

toJSONList :: [Line] -> Value

toEncodingList :: [Line] -> Encoding

type Rep Line Source # 
Instance details

Defined in Graphics.Plotly.Internal

type Rep Line = D1 ('MetaData "Line" "Graphics.Plotly.Internal" "plotly-hs-0.1.0.0-5GqvvACHt0P1rkfhVJsYpr" 'False) (C1 ('MetaCons "Line" 'PrefixI 'True) ((S1 ('MetaSel ('Just "showscale") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "reversescale") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "colorscale") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ColorScale)) :*: (S1 ('MetaSel ('Just "colormap") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ColorMap)) :*: S1 ('MetaSel ('Just "color") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe [Double]))))))

data Marker Source #

Marker Config

Constructors

Marker 

Fields

Instances

Instances details
Show Marker Source # 
Instance details

Defined in Graphics.Plotly.Internal

Generic Marker Source # 
Instance details

Defined in Graphics.Plotly.Internal

Associated Types

type Rep Marker :: Type -> Type #

Methods

from :: Marker -> Rep Marker x #

to :: Rep Marker x -> Marker #

ToJSON Marker Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: Marker -> Value

toEncoding :: Marker -> Encoding

toJSONList :: [Marker] -> Value

toEncodingList :: [Marker] -> Encoding

type Rep Marker Source # 
Instance details

Defined in Graphics.Plotly.Internal

type Rep Marker = D1 ('MetaData "Marker" "Graphics.Plotly.Internal" "plotly-hs-0.1.0.0-5GqvvACHt0P1rkfhVJsYpr" 'False) (C1 ('MetaCons "Marker" 'PrefixI 'True) (S1 ('MetaSel ('Just "size") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: (S1 ('MetaSel ('Just "symbol") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Symbol) :*: S1 ('MetaSel ('Just "opacity") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double))))

data Trace Source #

Data Trace

Constructors

Trace 

Fields

Instances

Instances details
Show Trace Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

showsPrec :: Int -> Trace -> ShowS #

show :: Trace -> String #

showList :: [Trace] -> ShowS #

Generic Trace Source # 
Instance details

Defined in Graphics.Plotly.Internal

Associated Types

type Rep Trace :: Type -> Type #

Methods

from :: Trace -> Rep Trace x #

to :: Rep Trace x -> Trace #

ToJSON Trace Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: Trace -> Value

toEncoding :: Trace -> Encoding

toJSONList :: [Trace] -> Value

toEncodingList :: [Trace] -> Encoding

type Rep Trace Source # 
Instance details

Defined in Graphics.Plotly.Internal

data TraceH Source #

Heatmap Trace

Constructors

TraceH 

Fields

Instances

Instances details
Show TraceH Source # 
Instance details

Defined in Graphics.Plotly.Internal

ToJSON TraceH Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: TraceH -> Value

toEncoding :: TraceH -> Encoding

toJSONList :: [TraceH] -> Value

toEncodingList :: [TraceH] -> Encoding

data TraceS Source #

Surface Trace

Constructors

TraceS 

Fields

Instances

Instances details
Show TraceS Source # 
Instance details

Defined in Graphics.Plotly.Internal

ToJSON TraceS Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: TraceS -> Value

toEncoding :: TraceS -> Encoding

toJSONList :: [TraceS] -> Value

toEncodingList :: [TraceS] -> Encoding

data TraceP Source #

Parallel Coordinate Trace

Constructors

TraceP 

Fields

Instances

Instances details
Show TraceP Source # 
Instance details

Defined in Graphics.Plotly.Internal

ToJSON TraceP Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: TraceP -> Value

toEncoding :: TraceP -> Encoding

toJSONList :: [TraceP] -> Value

toEncodingList :: [TraceP] -> Encoding

data Dimension Source #

Axis Dimension for Parallel Coordinate Plot

Constructors

Dimension 

Fields

Instances

Instances details
Show Dimension Source # 
Instance details

Defined in Graphics.Plotly.Internal

Generic Dimension Source # 
Instance details

Defined in Graphics.Plotly.Internal

Associated Types

type Rep Dimension :: Type -> Type #

ToJSON Dimension Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: Dimension -> Value

toEncoding :: Dimension -> Encoding

toJSONList :: [Dimension] -> Value

toEncodingList :: [Dimension] -> Encoding

type Rep Dimension Source # 
Instance details

Defined in Graphics.Plotly.Internal

type Rep Dimension = D1 ('MetaData "Dimension" "Graphics.Plotly.Internal" "plotly-hs-0.1.0.0-5GqvvACHt0P1rkfhVJsYpr" 'False) (C1 ('MetaCons "Dimension" 'PrefixI 'True) (S1 ('MetaSel ('Just "range") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe [Int])) :*: (S1 ('MetaSel ('Just "label") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 String) :*: S1 ('MetaSel ('Just "values") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Double]))))

data Type Source #

Plot Type

Constructors

Scatter

Scatter Plot

Histogram

Histogram

Heatmap

Heatmap

Scatter3D

3D Scatter

Surface

3D Surface

ParCoords

Parallel Coordinate Plot

Instances

Instances details
Eq Type Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

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

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

Show Type Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

showsPrec :: Int -> Type -> ShowS #

show :: Type -> String #

showList :: [Type] -> ShowS #

Generic Type Source # 
Instance details

Defined in Graphics.Plotly.Internal

Associated Types

type Rep Type :: Type -> Type #

Methods

from :: Type -> Rep Type x #

to :: Rep Type x -> Type #

ToJSON Type Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: Type -> Value

toEncoding :: Type -> Encoding

toJSONList :: [Type] -> Value

toEncodingList :: [Type] -> Encoding

type Rep Type Source # 
Instance details

Defined in Graphics.Plotly.Internal

type Rep Type = D1 ('MetaData "Type" "Graphics.Plotly.Internal" "plotly-hs-0.1.0.0-5GqvvACHt0P1rkfhVJsYpr" 'False) ((C1 ('MetaCons "Scatter" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Histogram" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Heatmap" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "Scatter3D" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Surface" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ParCoords" 'PrefixI 'False) (U1 :: Type -> Type))))

data Mode Source #

Scatter Mode

Constructors

Lines

Draw Lines

Markers

Draw Markers only

LinesMarkers

Draw Both

Instances

Instances details
Eq Mode Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

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

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

Show Mode Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

showsPrec :: Int -> Mode -> ShowS #

show :: Mode -> String #

showList :: [Mode] -> ShowS #

Generic Mode Source # 
Instance details

Defined in Graphics.Plotly.Internal

Associated Types

type Rep Mode :: Type -> Type #

Methods

from :: Mode -> Rep Mode x #

to :: Rep Mode x -> Mode #

ToJSON Mode Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: Mode -> Value

toEncoding :: Mode -> Encoding

toJSONList :: [Mode] -> Value

toEncodingList :: [Mode] -> Encoding

type Rep Mode Source # 
Instance details

Defined in Graphics.Plotly.Internal

type Rep Mode = D1 ('MetaData "Mode" "Graphics.Plotly.Internal" "plotly-hs-0.1.0.0-5GqvvACHt0P1rkfhVJsYpr" 'False) (C1 ('MetaCons "Lines" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Markers" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LinesMarkers" 'PrefixI 'False) (U1 :: Type -> Type)))

data Symbol Source #

Marker Symbols

Instances

Instances details
Eq Symbol Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

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

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

Show Symbol Source # 
Instance details

Defined in Graphics.Plotly.Internal

Generic Symbol Source # 
Instance details

Defined in Graphics.Plotly.Internal

Associated Types

type Rep Symbol :: Type -> Type #

Methods

from :: Symbol -> Rep Symbol x #

to :: Rep Symbol x -> Symbol #

ToJSON Symbol Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: Symbol -> Value

toEncoding :: Symbol -> Encoding

toJSONList :: [Symbol] -> Value

toEncodingList :: [Symbol] -> Encoding

type Rep Symbol Source # 
Instance details

Defined in Graphics.Plotly.Internal

type Rep Symbol = D1 ('MetaData "Symbol" "Graphics.Plotly.Internal" "plotly-hs-0.1.0.0-5GqvvACHt0P1rkfhVJsYpr" 'False) (((C1 ('MetaCons "Circle" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CircleOpen" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Cross" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Diamond" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "DiamondOpen" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Square" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "SquareOpen" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "X" 'PrefixI 'False) (U1 :: Type -> Type))))

data ColorScale Source #

Color scales for Heamap / 3D Plots

Instances

Instances details
Eq ColorScale Source # 
Instance details

Defined in Graphics.Plotly.Internal

Show ColorScale Source # 
Instance details

Defined in Graphics.Plotly.Internal

Generic ColorScale Source # 
Instance details

Defined in Graphics.Plotly.Internal

Associated Types

type Rep ColorScale :: Type -> Type #

ToJSON ColorScale Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: ColorScale -> Value

toEncoding :: ColorScale -> Encoding

toJSONList :: [ColorScale] -> Value

toEncodingList :: [ColorScale] -> Encoding

type Rep ColorScale Source # 
Instance details

Defined in Graphics.Plotly.Internal

type Rep ColorScale = D1 ('MetaData "ColorScale" "Graphics.Plotly.Internal" "plotly-hs-0.1.0.0-5GqvvACHt0P1rkfhVJsYpr" 'False) ((((C1 ('MetaCons "Discrete" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Blackbody" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Bluered" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Blues" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Cividis" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Earth" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Electric" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Greens" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Greys" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "Hot" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Jet" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Picnic" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Portland" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Rainbow" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "RdBu" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Reds" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Viridis" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "YlGnBu" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "YlOrRd" 'PrefixI 'False) (U1 :: Type -> Type))))))

data Color Source #

Some Color Strings

Constructors

Red 
Green 
Blue 
Yellow 
Magenta 
Cyan 
Black 
Gray 
White 

Instances

Instances details
Enum Color Source # 
Instance details

Defined in Graphics.Plotly.Internal

Eq Color Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

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

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

Show Color Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

showsPrec :: Int -> Color -> ShowS #

show :: Color -> String #

showList :: [Color] -> ShowS #

Generic Color Source # 
Instance details

Defined in Graphics.Plotly.Internal

Associated Types

type Rep Color :: Type -> Type #

Methods

from :: Color -> Rep Color x #

to :: Rep Color x -> Color #

ToJSON Color Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: Color -> Value

toEncoding :: Color -> Encoding

toJSONList :: [Color] -> Value

toEncodingList :: [Color] -> Encoding

type Rep Color Source # 
Instance details

Defined in Graphics.Plotly.Internal

type Rep Color = D1 ('MetaData "Color" "Graphics.Plotly.Internal" "plotly-hs-0.1.0.0-5GqvvACHt0P1rkfhVJsYpr" 'False) (((C1 ('MetaCons "Red" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Green" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Blue" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Yellow" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Magenta" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Cyan" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Black" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Gray" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "White" 'PrefixI 'False) (U1 :: Type -> Type)))))

data ColorMapping Source #

Type alias for mapping a color

Constructors

ColorMapping !Double !Color 

Instances

Instances details
Show ColorMapping Source # 
Instance details

Defined in Graphics.Plotly.Internal

Generic ColorMapping Source # 
Instance details

Defined in Graphics.Plotly.Internal

Associated Types

type Rep ColorMapping :: Type -> Type #

ToJSON ColorMapping Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: ColorMapping -> Value

toEncoding :: ColorMapping -> Encoding

toJSONList :: [ColorMapping] -> Value

toEncodingList :: [ColorMapping] -> Encoding

type Rep ColorMapping Source # 
Instance details

Defined in Graphics.Plotly.Internal

type Rep ColorMapping = D1 ('MetaData "ColorMapping" "Graphics.Plotly.Internal" "plotly-hs-0.1.0.0-5GqvvACHt0P1rkfhVJsYpr" 'False) (C1 ('MetaCons "ColorMapping" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Color)))

type ColorMap = [ColorMapping] Source #

Type alias for a list of color mappings

data BarMode Source #

Bar Layout

Constructors

Stack

Stacked

Group

Grouped

Overlay

Overlayed

Relative

Relative

Instances

Instances details
Eq BarMode Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

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

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

Show BarMode Source # 
Instance details

Defined in Graphics.Plotly.Internal

Generic BarMode Source # 
Instance details

Defined in Graphics.Plotly.Internal

Associated Types

type Rep BarMode :: Type -> Type #

Methods

from :: BarMode -> Rep BarMode x #

to :: Rep BarMode x -> BarMode #

ToJSON BarMode Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: BarMode -> Value

toEncoding :: BarMode -> Encoding

toJSONList :: [BarMode] -> Value

toEncodingList :: [BarMode] -> Encoding

type Rep BarMode Source # 
Instance details

Defined in Graphics.Plotly.Internal

type Rep BarMode = D1 ('MetaData "BarMode" "Graphics.Plotly.Internal" "plotly-hs-0.1.0.0-5GqvvACHt0P1rkfhVJsYpr" 'False) ((C1 ('MetaCons "Stack" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Group" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Overlay" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Relative" 'PrefixI 'False) (U1 :: Type -> Type)))

data XBins Source #

Bins in Histogram

Constructors

XBins 

Fields

Instances

Instances details
Show XBins Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

showsPrec :: Int -> XBins -> ShowS #

show :: XBins -> String #

showList :: [XBins] -> ShowS #

Generic XBins Source # 
Instance details

Defined in Graphics.Plotly.Internal

Associated Types

type Rep XBins :: Type -> Type #

Methods

from :: XBins -> Rep XBins x #

to :: Rep XBins x -> XBins #

ToJSON XBins Source # 
Instance details

Defined in Graphics.Plotly.Internal

Methods

toJSON :: XBins -> Value

toEncoding :: XBins -> Encoding

toJSONList :: [XBins] -> Value

toEncodingList :: [XBins] -> Encoding

type Rep XBins Source # 
Instance details

Defined in Graphics.Plotly.Internal

type Rep XBins = D1 ('MetaData "XBins" "Graphics.Plotly.Internal" "plotly-hs-0.1.0.0-5GqvvACHt0P1rkfhVJsYpr" 'False) (C1 ('MetaCons "XBins" 'PrefixI 'True) (S1 ('MetaSel ('Just "size") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: (S1 ('MetaSel ('Just "start") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "end") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Double)))))

traceData :: Int -> Script Source #

Generates line for data variable for N traces

traceLine :: ToJSON a => a -> Int -> ByteString Source #

Generates line for ith trace variable

toScript :: ToJSON a => Maybe Layout -> [a] -> ByteString Source #

Converts layout and list of traces to Script for insertion into HTML

mkTrace :: Maybe String -> Maybe Mode -> Maybe Marker -> Type -> BarMode -> XBins -> [Double] -> [Double] -> [Double] -> Trace Source #

Trace contructor, different order of arguments

mkTraceH :: ColorScale -> Bool -> Bool -> [String] -> [String] -> [[Double]] -> TraceH Source #

Heatmap Trace constructor

mkTraceS :: Maybe String -> ColorScale -> [Double] -> [Double] -> [[Double]] -> TraceS Source #

Heatmap Trace constructor

mkTraceP :: ColorScale -> Bool -> Bool -> [Double] -> [String] -> [[[Double]]] -> TraceP Source #

Parallel Coordinate Trace Constructor

mkTraceP' :: [String] -> [[[Double]]] -> TraceP Source #

Parallel Coordinate Trace Constructor without Line configuration