Popularity
7.2
Stable
Activity
0.0
Stable
27
6
0

Monthly Downloads: 43
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Charts     Other    
Latest version: v0.5.5.0

chart-unit alternatives and similar packages

Based on the "Charts" category.
Alternatively, view chart-unit alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of chart-unit or a related project?

Add another 'Charts' Package

README

chart-unit

Build Status Hackage lts nightly

chart-unit is a chart library providing a chart ADT, combinators and a small set of high-quality charts using native haskell.

[](chart-unit/other/mainExample.svg)

Chart Types

The chart types include:

[](chart-unit-examples/other/textHudExample.svg)

[](chart-unit-examples/other/glyphHudExample.svg)

[](chart-unit-examples/other/lglyphHudExample.svg)

[](chart-unit-examples/other/lineHudExample.svg)

[](chart-unit-examples/other/glineHudExample.svg)

[](chart-unit-examples/other/rectHudExample.svg)

[](chart-unit-examples/other/pixelHudExample.svg)

[](chart-unit-examples/other/arrowHudExample.svg)

[](chart-unit/other/barExample.svg)

Why the name chart-unit?

Most of the behind-the-scenes grunt work is scaling data, projecting points from one range to another, and computing position. A key to making these computations neat was one = Range -0.5 0.5 and one = Rect -0.5 0.5 -0.5 0.5 as the (multiplicative) units of a chart range. See numhask-range for a monologue.

What's with the funny names?

Charting is an age-old craft, and stuffed to the brim with cliche and jargon. I wanted to cut through the cruft of what is thought of as a chart (and charting has been dominated by excel for 30 years), and approach charting from a haskelly perspective. The funny names were the cohorts that popped out. A rough translation:

ye-old Chart type chart-unit type
line LineChart
line chart with markers GLineChart
scatter GlyphChart
pie pull requests welcome
heatmap PixelChart
Bar RectChart
Histogram RectChart
sparkline a skinny Aspect

Gallery

Composable chart types and the power of diagrams make it easy to invent new charts. Here's some inspiration (all code for these charts is in examples/gallery.hs).

grid

[](chart-unit-examples/other/gridExample.svg)

time

Chart.Data.Time deals with the scenario where you want to plot a time series consecutively (y values are [0..]) but there are gaps in the seris such as no data on weekend days.

[](chart-unit-examples/other/timeExample.svg)

schoolbook

[](chart-unit-examples/other/schoolbookExample.svg)

From the Haskell survey ...

q7

[](chart-unit-examples/other/q7Example.svg)

q24

[](chart-unit-examples/other/q24Example.svg)

histogram diff

[](chart-unit-examples/other/histDiffExample.svg)

combined scatter histogram

[](chart-unit-examples/other/scatterHistExample.svg)

clipping

[](chart-unit-examples/other/clippingExample.svg)

skinny

[](chart-unit-examples/other/skinnyExample.svg)

tests

Differences between text methods, across alignments

[](chart-unit-examples/other/testTextDiffs.svg)

workflow

stack build --test --haddock --exec "$(stack path --local-install-root)/bin/chart-unit-source-examples" --exec "$(stack path --local-install-root)/bin/chart-unit-main-example" --exec "$(stack path --local-install-root)/bin/chart-unit-gallery" --exec "$(stack path --local-bin)/pandoc -f markdown -i other/header.md readme.md other/footer.md -t html -o index.html --filter pandoc-include --mathjax" --file-watch