| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Plotly
Description
Re-exports the Simple interface, the grammar of grpahics interface and parts of the base interface.
Synopsis
- data Marker = Marker (Maybe (ListOrElem Value)) (Maybe (ListOrElem Value)) (Maybe Symbol) (Maybe Double)
- data ListOrElem a
- data Symbol
- data Color
- data TraceType
- data Mode
- catColors :: Eq a => [a] -> ListOrElem Value
- data Line = Line {
- _linewidth :: Maybe Double
- _linecolor :: Maybe Color
- _dash :: Maybe Dash
- data Fill
- data Orientation
- data Dash
- markercolor :: Lens' Marker (Maybe (ListOrElem Value))
- opacity :: Lens' Marker (Maybe Double)
- symbol :: Lens' Marker (Maybe Symbol)
- defMarker :: Marker
- data Trace = Trace (Maybe [Value]) (Maybe [Value]) (Maybe [Mode]) (Maybe Text) (Maybe [Text]) TraceType (Maybe Marker) (Maybe Line) (Maybe Fill) (Maybe Orientation)
- dash :: Lens' Line (Maybe Dash)
- linecolor :: Lens' Line (Maybe Color)
- linewidth :: Lens' Line (Maybe Double)
- defLine :: Line
- data Axis = Axis {}
- fill :: Lens' Trace (Maybe Fill)
- marker :: Lens' Trace (Maybe Marker)
- mode :: Lens' Trace (Maybe [Mode])
- name :: Lens' Trace (Maybe Text)
- orientation :: Lens' Trace (Maybe Orientation)
- text :: Lens' Trace (Maybe [Text])
- tracetype :: Lens' Trace TraceType
- scatter :: Trace
- bars :: Trace
- data Margin = Margin {}
- data Barmode
- axistitle :: Lens' Axis (Maybe Text)
- range :: Lens' Axis (Maybe (Double, Double))
- showgrid :: Lens' Axis (Maybe Bool)
- zeroline :: Lens' Axis (Maybe Bool)
- defAxis :: Axis
- data Layout = Layout {}
- marginb :: Lens' Margin Int
- marginl :: Lens' Margin Int
- marginpad :: Lens' Margin Int
- marginr :: Lens' Margin Int
- margint :: Lens' Margin Int
- thinMargins :: Margin
- titleMargins :: Margin
- data Plotly = Plotly {}
- barmode :: Lens' Layout (Maybe Barmode)
- height :: Lens' Layout (Maybe Int)
- margin :: Lens' Layout (Maybe Margin)
- showlegend :: Lens' Layout (Maybe Bool)
- title :: Lens' Layout (Maybe Text)
- width :: Lens' Layout (Maybe Int)
- xaxis :: Lens' Layout (Maybe Axis)
- yaxis :: Lens' Layout (Maybe Axis)
- defLayout :: Layout
- elemid :: Lens' Plotly Text
- layout :: Lens' Plotly Layout
- traces :: Lens' Plotly [Trace]
- plotly :: Text -> [Trace] -> Plotly
- module Graphics.Plotly.Simple
- module Graphics.Plotly.GoG
Documentation
Marker specification
Constructors
| Marker (Maybe (ListOrElem Value)) (Maybe (ListOrElem Value)) (Maybe Symbol) (Maybe Double) |
Instances
| Eq Marker # | |
| Generic Marker # | |
| ToJSON Marker # | |
Defined in Graphics.Plotly.Base | |
| type Rep Marker # | |
Defined in Graphics.Plotly.Base type Rep Marker = D1 (MetaData "Marker" "Graphics.Plotly.Base" "plotlyhs-0.2-GQw4xwBsKHSB8ZQAQEkWIM" False) (C1 (MetaCons "Marker" PrefixI True) ((S1 (MetaSel (Just "_size") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (ListOrElem Value))) :*: S1 (MetaSel (Just "_markercolor") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (ListOrElem Value)))) :*: (S1 (MetaSel (Just "_symbol") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Symbol)) :*: S1 (MetaSel (Just "_opacity") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Double))))) | |
data ListOrElem a #
Instances
| Eq a => Eq (ListOrElem a) # | |
Defined in Graphics.Plotly.Base | |
| ToJSON a => ToJSON (ListOrElem a) # | |
Defined in Graphics.Plotly.Base Methods toJSON :: ListOrElem a -> Value # toEncoding :: ListOrElem a -> Encoding # toJSONList :: [ListOrElem a] -> Value # toEncodingList :: [ListOrElem a] -> Encoding # | |
Different types of markers
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 # | |
Defined in Graphics.Plotly.Base | |
What kind of plot type are we building - scatter (inluding line plots) or bars?
How should traces be drawn? (lines or markers)
catColors :: Eq a => [a] -> ListOrElem Value #
Assign colors based on any categorical value
line specification
Constructors
| Line | |
Fields
| |
Instances
| Generic Line # | |
| ToJSON Line # | |
Defined in Graphics.Plotly.Base | |
| type Rep Line # | |
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))))) | |
Are we filling area plots from the zero line or to the next Y value?
data Orientation #
Horizontal or Vertical orientation of bars
Constructors
| Horizontal | |
| Vertical |
Instances
| ToJSON Orientation # | |
Defined in Graphics.Plotly.Base Methods toJSON :: Orientation -> Value # toEncoding :: Orientation -> Encoding # toJSONList :: [Orientation] -> Value # toEncodingList :: [Orientation] -> Encoding # | |
markercolor :: Lens' Marker (Maybe (ListOrElem Value)) #
A Trace is the component of a plot. Multiple traces can be superimposed.
Constructors
| Trace (Maybe [Value]) (Maybe [Value]) (Maybe [Mode]) (Maybe Text) (Maybe [Text]) TraceType (Maybe Marker) (Maybe Line) (Maybe Fill) (Maybe Orientation) |
Instances
Options for axes
Constructors
| Axis | |
Instances
| Generic Axis # | |
| ToJSON Axis # | |
Defined in Graphics.Plotly.Base | |
| type Rep Axis # | |
Defined in Graphics.Plotly.Base type Rep Axis = D1 (MetaData "Axis" "Graphics.Plotly.Base" "plotlyhs-0.2-GQw4xwBsKHSB8ZQAQEkWIM" False) (C1 (MetaCons "Axis" PrefixI True) ((S1 (MetaSel (Just "_range") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Double, Double))) :*: S1 (MetaSel (Just "_axistitle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_showgrid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_zeroline") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))))) | |
orientation :: Lens' Trace (Maybe Orientation) #
Options for Margins.
Constructors
| Margin | |
Instances
| Generic Margin # | |
| ToJSON Margin # | |
Defined in Graphics.Plotly.Base | |
| type Rep Margin # | |
Defined in Graphics.Plotly.Base type Rep Margin = D1 (MetaData "Margin" "Graphics.Plotly.Base" "plotlyhs-0.2-GQw4xwBsKHSB8ZQAQEkWIM" False) (C1 (MetaCons "Margin" PrefixI True) ((S1 (MetaSel (Just "_marginl") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "_marginr") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) :*: (S1 (MetaSel (Just "_marginb") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: (S1 (MetaSel (Just "_margint") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "_marginpad") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))))) | |
How different bar traces be superimposed? By grouping or by stacking?
options for the layout of the whole plot
Constructors
| Layout | |
Instances
thinMargins :: Margin #
some good values for margins
titleMargins :: Margin #
some good values for margins
A helper record which represents the whole plot
module Graphics.Plotly.Simple
module Graphics.Plotly.GoG