| Safe Haskell | None |
|---|
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
toRenderableto a value of typeLayout1 - a pie chart can be is created by applying
toRenderableto a value of typePieLayout
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.