packages feed

asciichart-1.0.2: README.md

# asciichart

<p><a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-brightgreen.svg" alt="License: MIT" /></a>
<a href="https://travis-ci.org/madnight/asciichart"><img src="https://travis-ci.org/madnight/asciichart.svg?branch=master" alt="Build Status" /></a>
<img src="https://badgen.net/badge//haskell/purple?icon=haskell" alt="" />
<a href="http://hackage.haskell.org/package/asciichart"><img src="https://images.weserv.nl/?url=img.shields.io/hackage/v/asciichart.svg&h=200&t=fitup&dpr=8" width="100" alt="Hackage" /></a>
<a href="http://hackage.haskell.org/package/asciichart"><img src="https://images.weserv.nl/?url=img.shields.io/hackage-deps/v/asciichart.svg&w=3000&t=fitup" height="20" alt="Hackage-Deps" /></a></p>


ASCII line charts in terminal ╭┈╯. Console line charts in pure Haskell.  
This is a Haskell port of the Javascript library [kroitor/asciichart](https://github.com/kroitor/asciichart). Free for any usage (MIT License).

![](example.png)

## Usage
```bash
cabal install asciichart
```

```haskell
import Data.Text.Chart (plot)

main :: IO ()
main = plot [1..20]
```

For more examples e.g. sinus wave see [examples folder](https://github.com/madnight/asciichart/tree/master/examples).  
You can also find this package on [Hackage](http://hackage.haskell.org/package/asciichart).

## References

Full credits to [kroitor](https://github.com/kroitor/) the inventor of asciichart for the terminal.  
This is only a simple port for the Haskell community.