Chart-1.9.4: A library for generating 2D Charts and Plots
Copyright(c) Tim Docker 2006 2014
LicenseBSD-style (see chart/COPYRIGHT)
Safe HaskellNone
LanguageHaskell98

Graphics.Rendering.Chart.Legend

Description

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

Documentation

data Legend x y Source #

Constructors

Legend LegendStyle [(String, Rect -> BackendProgram ())] 

Instances

Instances details
ToRenderable (Legend x y) Source # 
Instance details

Defined in Graphics.Rendering.Chart.Legend

Methods

toRenderable :: Legend x y -> Renderable () 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)

Constructors

LORows Int 
LOCols Int 

data LegendPosition Source #

Defines the position of the legend, relative to the plot.