Chart-1.3.3: A library for generating 2D Charts and Plots

Copyright(c) Tim Docker 2014
LicenseBSD-style (see chart/COPYRIGHT)
Safe HaskellNone
LanguageHaskell98

Graphics.Rendering.Chart.Easy

Description

Importing the Easy module brings into scope all core functions and types required for working with the chart library. This includes key external dependencies such as Control.Len and Data.Colour. The module also provides several helper functions for quickly generating common plots.

Note that chart backends must still be explicitly imported, as some backends cannot be built on all platforms.

Synopsis

Documentation

line :: String -> [[(x, y)]] -> EC l (PlotLines x y)

Constuct a line plot with the given title and data, using the next available color.

points :: String -> [(x, y)] -> EC l (PlotPoints x y)

Construct a scatter plot with the given title and data, using the next available color and point shape.

bars :: (PlotValue x, BarsPlotValue y) => [String] -> [(x, [y])] -> EC l (PlotBars x y)

Construct a bar chart with the given titles and data, using the next available colors

setColors :: [AlphaColour Double] -> EC l ()

Set the contents of the colour source, for subsequent plots

setShapes :: [PointShape] -> EC l ()

Set the contents of the shape source, for subsequent plots