chart-unit-0.6.3.0: Native haskell charts.

Safe HaskellNone
LanguageHaskell2010

Chart.ADT

Description

Experimental Chart ADT

Synopsis

Documentation

data ChartSpec Source #

A single Chart specification

Instances

Show ChartSpec Source # 
Generic ChartSpec Source # 

Associated Types

type Rep ChartSpec :: * -> * #

type Rep ChartSpec Source # 
type Rep ChartSpec = D1 * (MetaData "ChartSpec" "Chart.ADT" "chart-unit-0.6.3.0-JcgWI3NOyX2Z7zYwyCLbD" False) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "GlyphChart" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [(GlyphOptions, [Pair Double])]))) (C1 * (MetaCons "LGlyphChart" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [(LabelOptions, GlyphOptions, [(Text, Pair Double)])])))) ((:+:) * (C1 * (MetaCons "LineChart" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [(LineOptions, [Pair Double])]))) ((:+:) * (C1 * (MetaCons "GlineChart" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [(LineOptions, GlyphOptions, [Pair Double])]))) (C1 * (MetaCons "TextChart" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [(TextOptions, [(Text, Pair Double)])])))))) ((:+:) * ((:+:) * (C1 * (MetaCons "RectChart" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [(RectOptions, [Rect Double])]))) (C1 * (MetaCons "PixelChart" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [[Pixel]])))) ((:+:) * (C1 * (MetaCons "ArrowChart" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [(ArrowOptions, [Arrow])]))) ((:+:) * (C1 * (MetaCons "BarChart" PrefixI False) ((:*:) * (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BarOptions)) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * BarData)))) (C1 * (MetaCons "HudChart" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * HudOptions)))))))

renderSpec :: Rect Double -> Rect Double -> ChartSpec -> Chart b Source #

render a ChartSpec

renderChart :: ChartOptions -> Chart b Source #

render a Chart specified using ChartOptions

rangeSpec :: ChartSpec -> Maybe (Rect Double) Source #

extract the range of a single specification

rangeChart :: ChartOptions -> Rect Double Source #

calculate the range of a ChartOptions