asciichart-1.0.1: Line charts in terminal

LicenseMIT
MaintainerFabian Beuke <mail@beuke.org>
Safe HaskellSafe
LanguageHaskell2010

Data.Text.Chart

Contents

Description

This module contains 4 functions. The plot function provides a very simple interface for plotting. It takes a List of Integers and prints out a corresponding chart with a default terminal height of 14 blocks. The plot function is therefore equivalent to plotWith options {height = 14}. You can find some examples here.

Synopsis

Plot

plot :: [Integer] -> IO () Source #

Takes a List of Integers and prints out a corresponding chart with a default terminal height of 14 blocks.

plotWith :: Options -> [Integer] -> IO () Source #

Same as plot but it's possible to define custom options. Example: plotWith options { height = 20 }

Options

options :: Options Source #

Provides default options: Options { height = 14 }.

height :: Options -> Int Source #

Allows to set the height of the chart.