Popularity
7.0
Growing
Activity
7.9
-
19
5
4

Monthly Downloads: 61
Programming language: Haskell
License: GNU General Public License v3.0 or later
Tags: Graphics     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