Copyright | (c) Tim Docker 2006 2014 |
---|---|
License | BSD-style (see chart/COPYRIGHT) |
Safe Haskell | None |
Language | Haskell98 |
Types and functions for handling the legend(s) on a chart. A legend is an area on the chart used to label the plotted values.
Synopsis
- data Legend x y = Legend LegendStyle [(String, Rect -> BackendProgram ())]
- data LegendStyle = LegendStyle {}
- data LegendOrientation
- data LegendPosition
- legendToRenderable :: Legend x y -> Renderable String
- legend_label_style :: Lens' LegendStyle FontStyle
- legend_margin :: Lens' LegendStyle Double
- legend_plot_size :: Lens' LegendStyle Double
- legend_orientation :: Lens' LegendStyle LegendOrientation
- legend_position :: Lens' LegendStyle LegendPosition
Documentation
Legend LegendStyle [(String, Rect -> BackendProgram ())] |
Instances
ToRenderable (Legend x y) Source # | |
Defined in Graphics.Rendering.Chart.Legend toRenderable :: Legend x y -> Renderable () Source # |
data LegendStyle Source #
Instances
Default LegendStyle Source # | |
Defined in Graphics.Rendering.Chart.Legend def :: LegendStyle # |
data LegendOrientation Source #
Legends can be constructed in two orientations: in rows (where we specify the maximum number of columns), and in columns (where we specify the maximum number of rows)
data LegendPosition Source #
Defines the position of the legend, relative to the plot.
legendToRenderable :: Legend x y -> Renderable String Source #