Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Surface chart combinators.
A common chart is to present a set of rectangles on the XY plane with colour representing values of the underlying data. This library uses the term surface chart but it is often referred to as a heatmap.
Synopsis
- data SurfaceData = SurfaceData {}
- data SurfaceOptions = SurfaceOptions {}
- defaultSurfaceOptions :: SurfaceOptions
- data SurfaceStyle = SurfaceStyle {
- surfaceColors :: [Colour]
- surfaceRectStyle :: Style
- defaultSurfaceStyle :: SurfaceStyle
- mkSurfaceData :: (Point Double -> Double) -> Rect Double -> Grid (Rect Double) -> [Colour] -> ([SurfaceData], Range Double)
- surfaces :: Style -> [SurfaceData] -> [Chart]
- surfacef :: (Point Double -> Double) -> SurfaceOptions -> ([Chart], Range Double)
- data SurfaceLegendOptions = SurfaceLegendOptions {}
- defaultSurfaceLegendOptions :: SurfaceLegendOptions
- surfaceLegendAxisOptions :: AxisOptions
- gridReferenceChart :: SurfaceLegendOptions -> ChartTree
- addSurfaceLegend :: SurfaceLegendOptions -> ChartTree -> ChartTree
Documentation
data SurfaceData Source #
Main surface data elements
SurfaceData | |
|
Instances
Generic SurfaceData Source # | |
Defined in Chart.Surface type Rep SurfaceData :: Type -> Type # from :: SurfaceData -> Rep SurfaceData x # to :: Rep SurfaceData x -> SurfaceData # | |
Show SurfaceData Source # | |
Defined in Chart.Surface showsPrec :: Int -> SurfaceData -> ShowS # show :: SurfaceData -> String # showList :: [SurfaceData] -> ShowS # | |
Eq SurfaceData Source # | |
Defined in Chart.Surface (==) :: SurfaceData -> SurfaceData -> Bool # (/=) :: SurfaceData -> SurfaceData -> Bool # | |
type Rep SurfaceData Source # | |
Defined in Chart.Surface type Rep SurfaceData = D1 ('MetaData "SurfaceData" "Chart.Surface" "chart-svg-0.6.0.0-HjsGv1l8hv76XDZORokPY6" 'False) (C1 ('MetaCons "SurfaceData" 'PrefixI 'True) (S1 ('MetaSel ('Just "surfaceRect") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Rect Double)) :*: S1 ('MetaSel ('Just "surfaceColor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Colour))) |
data SurfaceOptions Source #
Options for a Surface chart.
Instances
defaultSurfaceOptions :: SurfaceOptions Source #
official style
data SurfaceStyle Source #
A surface chart is a specialization of a RectChart
>>>
defaultSurfaceStyle
SurfaceStyle {surfaceColors = [Colour 0.02 0.73 0.80 1.00,Colour 0.02 0.29 0.48 1.00], surfaceRectStyle = Style {size = 6.0e-2, borderSize = 0.0, color = Colour 0.05 0.05 0.05 1.00, borderColor = Colour 0.00 0.00 0.00 0.00, scaleP = NoScaleP, anchor = AnchorMiddle, rotation = Nothing, translate = Nothing, escapeText = EscapeText, frame = Nothing, lineCap = Nothing, lineJoin = Nothing, dasharray = Nothing, dashoffset = Nothing, hsize = 0.6, vsize = 1.1, vshift = -0.25, glyphShape = SquareGlyph}}
SurfaceStyle | |
|
Instances
Generic SurfaceStyle Source # | |
Defined in Chart.Surface type Rep SurfaceStyle :: Type -> Type # from :: SurfaceStyle -> Rep SurfaceStyle x # to :: Rep SurfaceStyle x -> SurfaceStyle # | |
Show SurfaceStyle Source # | |
Defined in Chart.Surface showsPrec :: Int -> SurfaceStyle -> ShowS # show :: SurfaceStyle -> String # showList :: [SurfaceStyle] -> ShowS # | |
Eq SurfaceStyle Source # | |
Defined in Chart.Surface (==) :: SurfaceStyle -> SurfaceStyle -> Bool # (/=) :: SurfaceStyle -> SurfaceStyle -> Bool # | |
type Rep SurfaceStyle Source # | |
Defined in Chart.Surface type Rep SurfaceStyle = D1 ('MetaData "SurfaceStyle" "Chart.Surface" "chart-svg-0.6.0.0-HjsGv1l8hv76XDZORokPY6" 'False) (C1 ('MetaCons "SurfaceStyle" 'PrefixI 'True) (S1 ('MetaSel ('Just "surfaceColors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Colour]) :*: S1 ('MetaSel ('Just "surfaceRectStyle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Style))) |
defaultSurfaceStyle :: SurfaceStyle Source #
The official surface style.
mkSurfaceData :: (Point Double -> Double) -> Rect Double -> Grid (Rect Double) -> [Colour] -> ([SurfaceData], Range Double) Source #
Create surface data from a function on a Point
surfacef :: (Point Double -> Double) -> SurfaceOptions -> ([Chart], Range Double) Source #
Create a surface chart from a function.
data SurfaceLegendOptions Source #
Legend specialization for a surface chart.
SurfaceLegendOptions | |
|
Instances
defaultSurfaceLegendOptions :: SurfaceLegendOptions Source #
official surface legend options
surfaceLegendAxisOptions :: AxisOptions Source #
AxisOptions
for a surface chart legend.
gridReferenceChart :: SurfaceLegendOptions -> ChartTree Source #
Chart used as a reference to a surface chart.
addSurfaceLegend :: SurfaceLegendOptions -> ChartTree -> ChartTree Source #
Add a surface legend to a main surface chart.