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.
- data Legend x y = Legend LegendStyle [(String, Rect -> BackendProgram ())]
- data LegendStyle = LegendStyle {}
- data LegendOrientation
- 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
Documentation
Legend LegendStyle [(String, Rect -> BackendProgram ())] |
ToRenderable (Legend x y) Source # | |
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)
legendToRenderable :: Legend x y -> Renderable String Source #