Copyright | (c) Tim Docker 2006 2014 |
---|---|
License | BSD-style (see chart/COPYRIGHT) |
Safe Haskell | None |
Language | Haskell98 |
Bar Charts
Synopsis
- data PlotBars x y = PlotBars {}
- data PlotBarsStyle
- data PlotBarsSpacing
- data PlotBarsAlignment
- 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 y. Lens' (PlotBars x y) PlotBarsStyle
- plot_bars_item_styles :: forall x y. Lens' (PlotBars x y) [(FillStyle, Maybe LineStyle)]
- plot_bars_titles :: forall x y. Lens' (PlotBars x y) [String]
- plot_bars_spacing :: forall x y. Lens' (PlotBars x y) PlotBarsSpacing
- plot_bars_alignment :: forall x y. Lens' (PlotBars x y) PlotBarsAlignment
- plot_bars_reference :: forall x y. Lens' (PlotBars x y) y
- plot_bars_singleton_width :: forall x y. Lens' (PlotBars x y) Double
- plot_bars_values :: forall x y x. Lens (PlotBars x y) (PlotBars x y) [(x, [y])] [(x, [y])]
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.
PlotBars | |
|
Instances
BarsPlotValue y => Default (PlotBars x y) Source # | |
Defined in Graphics.Rendering.Chart.Plot.Bars |
data PlotBarsStyle Source #
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
Show PlotBarsStyle Source # | |
Defined in Graphics.Rendering.Chart.Plot.Bars showsPrec :: Int -> PlotBarsStyle -> ShowS # show :: PlotBarsStyle -> String # showList :: [PlotBarsStyle] -> ShowS # |
data PlotBarsSpacing Source #
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
Show PlotBarsSpacing Source # | |
Defined in Graphics.Rendering.Chart.Plot.Bars showsPrec :: Int -> PlotBarsSpacing -> ShowS # show :: PlotBarsSpacing -> String # showList :: [PlotBarsSpacing] -> ShowS # |
data PlotBarsAlignment Source #
How bars for a given (x,[y]) are aligned with respect to screen coordinate corresponding to x (deviceX).
BarsLeft | The left edge of bars is at deviceX |
BarsCentered | Bars are centered around deviceX |
BarsRight | The right edge of bars is at deviceX |
Instances
Show PlotBarsAlignment Source # | |
Defined in Graphics.Rendering.Chart.Plot.Bars showsPrec :: Int -> PlotBarsAlignment -> ShowS # show :: PlotBarsAlignment -> String # showList :: [PlotBarsAlignment] -> ShowS # |
class PlotValue a => BarsPlotValue a where Source #
Instances
plot_bars_style :: forall x y. Lens' (PlotBars x y) PlotBarsStyle Source #
plot_bars_spacing :: forall x y. Lens' (PlotBars x y) PlotBarsSpacing Source #
plot_bars_alignment :: forall x y. Lens' (PlotBars x y) PlotBarsAlignment Source #
plot_bars_reference :: forall x y. Lens' (PlotBars x y) y Source #