Popularity
5.9
Growing
Activity
6.3
-
8
4
2

Monthly Downloads: 35
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Charts     Project    

chart-svg alternatives and similar packages

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

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

Add another 'Project' Package

README

chart-svg

Build
Status Hackage

A chart library targetting SVG.

Usage

import Chart

main :: IO ()
main = do
  let xs = [[(0.0, 1.0), (1.0, 1.0), (2.0, 5.0)], [(0.0, 0.0), (3.2, 3.0)], [(0.5, 4.0), (0.5, 0)]] :: [[(Double, Double)]]
  let ls = fmap (PointXY . uncurry Point) <$> xs
  let anns = zipWith (\w c -> LineA (LineStyle w c)) [0.015, 0.03, 0.01] palette1
  let lineChart = zipWith Chart anns ls
  writeChartSvgHud "lineshud.svg" lineChart

[chart-svg example](other/lineshud.svg)

Examples

See the code in Chart.Examples for practical usage.

The package includes a local chart server in app/example.hs which is a useful way to explore the api.

stack exec examples --file-watch

Also included is construction of this logo:

[](other/venn.svg)

Chart Types

rect

[](other/unit.svg)

line

[](other/line.svg)

text

[](other/text.svg)

glyph

[](other/glyph.svg)

bar

[](other/bar.svg)

surface

[](other/surface.svg)

recipe