Chart-1.9.5: A library for generating 2D Charts and Plots
Copyright(c) Tim Docker 2006 2014
LicenseBSD-style (see chart/COPYRIGHT)
Safe HaskellSafe-Inferred
LanguageHaskell98

Graphics.Rendering.Chart.Plot.Bars

Description

Bar Charts

Synopsis

Documentation

data PlotBars x y Source #

Constructors

PlotBars 

Fields

Instances

Instances details
Default (PlotBars x y) Source # 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Bars

Methods

def :: PlotBars x y #

data PlotBarsStyle Source #

Constructors

BarsStacked

Bars for a fixed x are stacked vertically on top of each other.

BarsClustered

Bars for a fixed x are put horizontally beside each other.

Instances

Instances details
Show PlotBarsStyle Source # 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Bars

data PlotBarsSpacing Source #

Constructors

BarsFixWidth Double

All bars have the same width in pixels.

BarsFixGap Double Double

(BarsFixGap g mw) means make the gaps between the bars equal to g, but with a minimum bar width of mw

Instances

Instances details
Show PlotBarsSpacing Source # 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Bars

data PlotBarsAlignment Source #

How bars for a given (x,[y]) are aligned with respect to screen coordinate corresponding to x (deviceX).

Constructors

BarsLeft

The left edge of bars is at deviceX

BarsCentered

Bars are centered around deviceX

BarsRight

The right edge of bars is at deviceX

class PlotValue a => BarsPlotValue a where Source #

Methods

barsIsNull :: a -> Bool Source #

barsReference :: [a] -> a Source #

The starting level for the chart, a function of some statistic (normally the lowest value or just const 0).

barsAdd :: a -> a -> a Source #

data BarVertAnchor Source #

Constructors

BVA_Bottom 
BVA_Centre 
BVA_Top 

Instances

Instances details
Show BarVertAnchor Source # 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Bars

plot_bars_titles :: forall x y. Lens' (PlotBars x y) [String] Source #

plot_bars_values :: Lens' (PlotBars x y) [(x, [y])] Source #

plot_bars_settings :: forall x y. Lens' (PlotBars x y) BarsSettings Source #

plot_bars_values_with_labels :: forall x y x y. Lens (PlotBars x y) (PlotBars x y) [(x, [(y, String)])] [(x, [(y, String)])] Source #

addLabels :: Show y => [(x, [y])] -> [(x, [(y, String)])] Source #