Graphics.Rendering.Chart.Plot.Bars
Description
Bar Charts
- data PlotBars x y = PlotBars {}
- defaultPlotBars :: BarsPlotValue y => PlotBars x y
- data PlotBarsStyle
- data PlotBarsSpacing
- data PlotBarsAlignment
- = BarsLeft
- | BarsCentered
- | BarsRight
- class PlotValue a => BarsPlotValue a where
- barsReference :: a
- barsAdd :: a -> a -> a
- plotBars :: BarsPlotValue y => PlotBars x y -> Plot x y
- plot_bars_style :: forall x[aOC7] y[aOC8]. T (PlotBars x[aOC7] y[aOC8]) PlotBarsStyle
- plot_bars_item_styles :: forall x[aOC7] y[aOC8]. T (PlotBars x[aOC7] y[aOC8]) [(CairoFillStyle, Maybe CairoLineStyle)]
- plot_bars_titles :: forall x[aOC7] y[aOC8]. T (PlotBars x[aOC7] y[aOC8]) [String]
- plot_bars_spacing :: forall x[aOC7] y[aOC8]. T (PlotBars x[aOC7] y[aOC8]) PlotBarsSpacing
- plot_bars_alignment :: forall x[aOC7] y[aOC8]. T (PlotBars x[aOC7] y[aOC8]) PlotBarsAlignment
- plot_bars_reference :: forall x[aOC7] y[aOC8]. T (PlotBars x[aOC7] y[aOC8]) y[aOC8]
- plot_bars_singleton_width :: forall x[aOC7] y[aOC8]. T (PlotBars x[aOC7] y[aOC8]) Double
- plot_bars_values :: forall x[aOC7] y[aOC8]. T (PlotBars x[aOC7] y[aOC8]) [(x[aOC7], [y[aOC8]])]
Documentation
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
|
defaultPlotBars :: BarsPlotValue y => PlotBars x ySource
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 | The right edge of bars is at deviceX |
BarsRight | Bars are centered around deviceX |
class PlotValue a => BarsPlotValue a whereSource
plotBars :: BarsPlotValue y => PlotBars x y -> Plot x ySource
plot_bars_style :: forall x[aOC7] y[aOC8]. T (PlotBars x[aOC7] y[aOC8]) PlotBarsStyleSource
plot_bars_item_styles :: forall x[aOC7] y[aOC8]. T (PlotBars x[aOC7] y[aOC8]) [(CairoFillStyle, Maybe CairoLineStyle)]Source
plot_bars_titles :: forall x[aOC7] y[aOC8]. T (PlotBars x[aOC7] y[aOC8]) [String]Source
plot_bars_spacing :: forall x[aOC7] y[aOC8]. T (PlotBars x[aOC7] y[aOC8]) PlotBarsSpacingSource
plot_bars_alignment :: forall x[aOC7] y[aOC8]. T (PlotBars x[aOC7] y[aOC8]) PlotBarsAlignmentSource
plot_bars_reference :: forall x[aOC7] y[aOC8]. T (PlotBars x[aOC7] y[aOC8]) y[aOC8]Source
plot_bars_singleton_width :: forall x[aOC7] y[aOC8]. T (PlotBars x[aOC7] y[aOC8]) DoubleSource
plot_bars_values :: forall x[aOC7] y[aOC8]. T (PlotBars x[aOC7] y[aOC8]) [(x[aOC7], [y[aOC8]])]Source