Chart-1.8.2: A library for generating 2D Charts and Plots

Copyright(c) Tim Docker 2006 2014
LicenseBSD-style (see chart/COPYRIGHT)
Safe HaskellNone
LanguageHaskell98

Graphics.Rendering.Chart.Plot.Bars

Description

Bar Charts

Synopsis

Documentation

data PlotBars x y Source #

Value describing how to plot a set of bars. Note that the input data is typed [(x,[y])], ie for each x value we plot several y values. Typically the size of each [y] list would be the same.

Constructors

PlotBars 

Fields

Instances

BarsPlotValue y => Default (PlotBars x y) Source # 

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.

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

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

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

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

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