Safe Haskell | None |
---|
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 -> ChartBackend ())]
- data LegendStyle = LegendStyle {}
- data LegendOrientation
- defaultLegendStyle :: LegendStyle
- 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 -> ChartBackend ())] |
ToRenderable (Legend x y) |
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)
defaultLegendStyle :: LegendStyleSource
Deprecated: Use the according Data.Default instance!
legendToRenderable :: Legend x y -> Renderable StringSource