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

Safe HaskellNone

Graphics.Rendering.Chart

Description

A framework for creating 2D charts in Haskell.

The basic model is that you define a value of type Renderable, typically by applying toRenderable to some other value. This Renderable is then actually displayed or output by calling either renderableToPNGFile, or renderableToWindow.

Currently, there are two kinds of Renderable for displaying charts:

  • a standard two axes chart can be is created by applying toRenderable to a value of type Layout1
  • a pie chart can be is created by applying toRenderable to a value of type PieLayout

Multiple Renderables can be composed using the Graphics.Rendering.Chart.Grid module.

Many of the record structure involved in the API have a large number of fields. For each record type X, there is generally a default value called defaultX with sensibly initialised fields. For example, Layout1 has defaultLayout1, etc.

For a simpler though less flexible API, see Graphics.Rendering.Chart.Simple.

Documentation