A chart drawing module for Haskell, using the Gloss drawing package.
- Axis with fixed or 'automatic' range.
- Linear and Logarithmic axis scale.
- Grids
- Chart types:
- Line chart
- Area chart
- Scatter plot
- Bubble chart
- Bar chart
- Box plot
- Polar coordinate plotting
See the file demo/Main.hs
for a usage example of each type of chart in the library.
Gloss >= 1.2 http://hackage.haskell.org/package/gloss
- Download HsCharts-1.0.tar.gz
- Unpack the tarball
- Change the directory to the unpacked tarball directory, or
source/
if you're using the repository. - Run the command
cabal install
To build and run the demo application, perform the following steps:
- Go to the
demo/
directory. - Build and install the demo:
cabal install
- Start the demo using
HsChartsDemo
HsCharts is licensed under BSD3, see LICENSE
for the complete license.
Pier Janssen, Maciej Wichrowski