| Copyright | (c) 2025 |
|---|---|
| License | MIT |
| Maintainer | mschavinda@gmail.com |
| Safe Haskell | None |
| Language | GHC2021 |
Granite.Spec
Description
Declarative Grammar-of-Graphics chart IR: data + layers + scales + coord + facet + theme + size.
Documentation
Constructors
| Chart | |
Fields
| |
emptyChart :: Chart Source #
module Granite.Data.Frame
module Granite.Format
data AesDefaults Source #
Constructors
| AesDefaults | |
Instances
| Read AesDefaults Source # | |
Defined in Granite.Spec Methods readsPrec :: Int -> ReadS AesDefaults # readList :: ReadS [AesDefaults] # readPrec :: ReadPrec AesDefaults # readListPrec :: ReadPrec [AesDefaults] # | |
| Show AesDefaults Source # | |
Defined in Granite.Spec Methods showsPrec :: Int -> AesDefaults -> ShowS # show :: AesDefaults -> String # showList :: [AesDefaults] -> ShowS # | |
| Eq AesDefaults Source # | |
Defined in Granite.Spec | |
Constructors
| Layer | |
Fields
| |
Constructors
| GeomPoint | |
| GeomLine | |
| GeomBar | |
| GeomCol | |
| GeomRibbon | |
| GeomErrorbar | |
| GeomTile | |
| GeomBoxplot | |
| GeomDensity | |
| GeomHistogram | |
| GeomText | |
| GeomArc |
Constructors
| StatIdentity | |
| StatBin BinSpec | |
| StatDensity | |
| StatSmooth SmoothMethod | |
| StatBoxplot | |
| StatCount | |
| StatSummary SummaryFun |
Constructors
| BinByCount Int | |
| BinByWidth Double | |
| BinByEdges [Double] |
data SmoothMethod Source #
Constructors
| SmoothLm | |
| SmoothLoess Double | |
| SmoothMovingAvg Int |
Instances
| Read SmoothMethod Source # | |
Defined in Granite.Spec Methods readsPrec :: Int -> ReadS SmoothMethod # readList :: ReadS [SmoothMethod] # | |
| Show SmoothMethod Source # | |
Defined in Granite.Spec Methods showsPrec :: Int -> SmoothMethod -> ShowS # show :: SmoothMethod -> String # showList :: [SmoothMethod] -> ShowS # | |
| Eq SmoothMethod Source # | |
Defined in Granite.Spec | |
data SummaryFun Source #
Constructors
| SumMean | |
| SumMedian | |
| SumQuantile Double | |
| SumSum |
Instances
| Read SummaryFun Source # | |
Defined in Granite.Spec Methods readsPrec :: Int -> ReadS SummaryFun # readList :: ReadS [SummaryFun] # readPrec :: ReadPrec SummaryFun # readListPrec :: ReadPrec [SummaryFun] # | |
| Show SummaryFun Source # | |
Defined in Granite.Spec Methods showsPrec :: Int -> SummaryFun -> ShowS # show :: SummaryFun -> String # showList :: [SummaryFun] -> ShowS # | |
| Eq SummaryFun Source # | |
Defined in Granite.Spec | |
Constructors
| SLinear ScaleOpts | |
| SLog LogBase ScaleOpts | |
| SSqrt ScaleOpts | |
| SReverse Scale | |
| SIdentity | |
| SDiscrete | |
| SColorContinuous [ColorSpec] | |
| SColorDiscrete [ColorSpec] | |
| SColorManual [(Text, ColorSpec)] | Map specific category values to specific colours (e.g.
|
Constructors
| ScaleOpts | |
Fields
| |
data BreaksSpec Source #
Constructors
| BreaksNice | |
| BreaksCount Int | |
| BreaksAt [Double] |
Instances
| Read BreaksSpec Source # | |
Defined in Granite.Spec Methods readsPrec :: Int -> ReadS BreaksSpec # readList :: ReadS [BreaksSpec] # readPrec :: ReadPrec BreaksSpec # readListPrec :: ReadPrec [BreaksSpec] # | |
| Show BreaksSpec Source # | |
Defined in Granite.Spec Methods showsPrec :: Int -> BreaksSpec -> ShowS # show :: BreaksSpec -> String # showList :: [BreaksSpec] -> ShowS # | |
| Eq BreaksSpec Source # | |
Defined in Granite.Spec | |
Constructors
| Expand | |
Fields
| |
Constructors
| CoordCartesian | |
| CoordFlip | |
| CoordPolar PolarAes Double PolarDir |
Constructors
| FacetNull | |
| FacetWrap ColumnRef (Maybe Int) (Maybe Int) FacetScales | |
| FacetGrid [ColumnRef] [ColumnRef] FacetScales |
data FacetScales Source #
Constructors
| ScalesFixed | |
| ScalesFreeX | |
| ScalesFreeY | |
| ScalesFree |
Instances
| Read FacetScales Source # | |
Defined in Granite.Spec Methods readsPrec :: Int -> ReadS FacetScales # readList :: ReadS [FacetScales] # readPrec :: ReadPrec FacetScales # readListPrec :: ReadPrec [FacetScales] # | |
| Show FacetScales Source # | |
Defined in Granite.Spec Methods showsPrec :: Int -> FacetScales -> ShowS # show :: FacetScales -> String # showList :: [FacetScales] -> ShowS # | |
| Eq FacetScales Source # | |
Defined in Granite.Spec | |