chart-svg-0.0.3: Charts in SVG

Safe HaskellNone
LanguageHaskell2010

Chart.Pixel

Description

pixel charts

Opting for a Point or a Rect as concrete data elements that make up an individual chart leaves us with a bit more work to construct a Pixel chart, where colors represent detailed data

Synopsis

Documentation

data PixelOptions Source #

Instances
Eq PixelOptions Source # 
Instance details

Defined in Chart.Pixel

Show PixelOptions Source # 
Instance details

Defined in Chart.Pixel

Generic PixelOptions Source # 
Instance details

Defined in Chart.Pixel

Associated Types

type Rep PixelOptions :: Type -> Type #

type Rep PixelOptions Source # 
Instance details

Defined in Chart.Pixel

type Rep PixelOptions = D1 (MetaData "PixelOptions" "Chart.Pixel" "chart-svg-0.0.3-7exTAOGVqFp4RtiGXqy9zP" False) (C1 (MetaCons "PixelOptions" PrefixI True) (S1 (MetaSel (Just "poStyle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PixelStyle) :*: (S1 (MetaSel (Just "poGrain") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Point Int)) :*: S1 (MetaSel (Just "poRange") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Rect Double)))))

pixels :: RectStyle -> [PixelData] -> [Chart Double] Source #

pixel chart without any hud trimmings

pixelate :: (Point Double -> Double) -> Rect Double -> Grid (Rect Double) -> Colour -> Colour -> ([PixelData], Range Double) Source #

create pixel data from a function on a Point

pixelf :: (Point Double -> Double) -> PixelOptions -> ([Chart Double], Range Double) Source #

create a pixel chart from a function

data PixelLegendOptions Source #