chart-svg: Charting library targetting SVGs.

[ bsd3, charts, library, program, project ] [ Propose Tags ]

This package provides a charting library targetting SVG as the rendered output.

Usage

>>> import Chart
>>> 
>>> let xs = [[(0.0, 1.0), (1.0, 1.0), (2.0, 5.0)], [(0.0, 0.0), (3.0, 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 Nothing Nothing Nothing Nothing)) [0.015, 0.03, 0.01] palette1
>>> let lineChart = zipWith Chart anns ls
>>> writeChartSvgHud "other/lineshud.svg" lineChart

See Chart for a broad overview of concepts, and Chart.Examples for a variety of practical examples.

Versions [faq] 0.0.1, 0.0.2, 0.0.3, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.2.0
Dependencies attoparsec (==0.13.*), base (>=4.7 && <5), bytestring (==0.10.*), chart-svg, Color (==0.3.*), concurrency (==1.11.*), cubicbezier (==0.6.*), foldl (==1.4.*), generic-lens (>=1.2 && <3.0), JuicyPixels (>=3.3.5 && <3.4), lens (==4.19.*), linear (==1.21.*), lucid (==2.9.*), numhask (==0.7.*), numhask-space (==0.7.*), reanimate (>=1.1.1.0 && <1.2), reanimate-svg (==0.13.*), scientific (==0.3.*), tagsoup (==0.14.*), text (==1.2.*), time (==1.9.*), transformers (==0.5.*), unordered-containers (==0.2.*), vector (==0.12.*) [details]
License BSD-3-Clause
Copyright Tony Day (c) 2017
Author Tony Day
Maintainer tonyday567@gmail.com
Revised Revision 1 made by tonyday567 at 2021-01-11T12:13:08Z
Category charts
Home page https://github.com/tonyday567/chart-svg#readme
Bug tracker https://github.com/tonyday567/chart-svg/issues
Source repo head: git clone https://github.com/tonyday567/chart-svg
Uploaded by tonyday567 at 2021-01-11T12:04:13Z
Distributions NixOS:0.1.3
Executables reanimate-example
Downloads 563 total (25 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2021-01-11 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees