chart-svg-0.0.3: Charts in SVG

Safe HaskellNone
LanguageHaskell2010

Chart.Bar

Description

bar charts

Synopsis

Documentation

data BarOptions Source #

the usual bar chart eye-candy

Instances
Eq BarOptions Source # 
Instance details

Defined in Chart.Bar

Show BarOptions Source # 
Instance details

Defined in Chart.Bar

Generic BarOptions Source # 
Instance details

Defined in Chart.Bar

Associated Types

type Rep BarOptions :: Type -> Type #

type Rep BarOptions Source # 
Instance details

Defined in Chart.Bar

data BarData Source #

imagine a data frame ...

Constructors

BarData 
Instances
Eq BarData Source # 
Instance details

Defined in Chart.Bar

Methods

(==) :: BarData -> BarData -> Bool #

(/=) :: BarData -> BarData -> Bool #

Show BarData Source # 
Instance details

Defined in Chart.Bar

Generic BarData Source # 
Instance details

Defined in Chart.Bar

Associated Types

type Rep BarData :: Type -> Type #

Methods

from :: BarData -> Rep BarData x #

to :: Rep BarData x -> BarData #

type Rep BarData Source # 
Instance details

Defined in Chart.Bar

type Rep BarData = D1 (MetaData "BarData" "Chart.Bar" "chart-svg-0.0.3-7exTAOGVqFp4RtiGXqy9zP" False) (C1 (MetaCons "BarData" PrefixI True) (S1 (MetaSel (Just "barData") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [[Double]]) :*: (S1 (MetaSel (Just "barRowLabels") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "barColumnLabels") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Text])))))

barDataLowerUpper :: Bool -> [[Double]] -> [[(Double, Double)]] Source #

convert data to a range assuming a zero bound a very common but implicit assumption in a lot of bar charts

barRange :: [[Double]] -> Rect Double Source #

calculate the Rect range of a bar data set.

bars :: BarOptions -> BarData -> [Chart Double] Source #

A bar chart without hud trimmings.

barChart :: BarOptions -> BarData -> (HudOptions, [Chart Double]) Source #

A bar chart with hud trimmings.

By convention only, the first axis (if any) is the bar axis.