Haskell Charts

A library for rendering 2D charts from haskell.

Features

News

03 Oct 2009

v0.12 has been uploaded to hackage. Changes include:

28 May 2009

v0.11 of the library has been uploaded to hackage. New features:

25 March 2009

Don Stewart has put together a short movie showing the library in action.

22 February 2009

V0.10 has been pushed to hackage. Main changes include:

/OldNews

Examples

Simple API

The "simple" API is straightforward to use directly from the ghci REPL. For example:

$ ghci -package Chart
...
Prelude> :m Graphics.Rendering.Chart.Simple
Prelude Graphics.Rendering.Chart.Simple> plotWindow [0,0.1..2.9] sin

will produce a chart in a window:

HaskellCharts/Example0

Standard API

(Click on the example to enlarge and view its haskell source)

HaskellCharts/Example1 HaskellCharts/Example2
HaskellCharts/Example3 HaskellCharts/Example6
HaskellCharts/Example8 HaskellCharts/Example9

Documentation

The documentation automatically generated by haddock is available here. This corresponds to the repo state tagged CHART_0_6'

To-Do

(too long to list!)

Dependents

There's some nice software that makes use of this library. Follow the links to some applications:

Dependencies

Download

via darcs, with the command: darcs get http://www.dockerz.net/repos/chart or get a (maybe more) stable version from hackage.

To build

Follow the usual cabal routine. If you fetched from darcs:

cd chart
runghc Setup.hs configure
runghc Setup.hs build
sudo runghc Setup.hs install

or from hackage:

tar -xzf Chart-0.9.tar.gz
cd Chart-0.9
runghc Setup.hs configure
runghc Setup.hs build
sudo runghc Setup.hs install

(Cabal note: the sudo is required to install into a system wide ghc package database. If you want to install only for the current user, then add something like "--user --prefix ~/ghc_local" to the configure line, and drop the sudo)

Finally, to build the set of test charts into a single executable:

cd tests; ghc --make test.hs
./test

Credits

Thanks to David Roundy, Francisco Jerez, Russell O'Connor, and Eugene Kirpichov for contributing patches.

Contact

Mailing List : http://groups.google.com/group/haskell-charts

or Tim Docker:

Patches welcome!

HaskellCharts (last edited 2009-11-04 12:58:17 by TimDocker)