chart-svg: Charting library targetting SVGs.

[ bsd3, charts, library ] [ Propose Tags ]

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

Usage

>>> :set -XOverloadedLabels
>>> :set -XOverloadedStrings
>>> import Chart
>>> import Optics.Core
>>> let lines = [[Point 0.0 1.0, Point 1.0 1.0, Point 2.0 5.0],[Point 0.0 0.0, Point 2.8 3.0],[Point 0.5 4.0, Point 0.5 0]]
>>> let styles = (\c -> defaultLineStyle & #color .~ palette1 c & #size .~ 0.015) <$> [0..2]
>>> let cs = zipWith (\s x -> LineChart s [x]) styles lines
>>> let lineExample = mempty & #charts .~ named "line" cs & #hudOptions .~ defaultHudOptions :: ChartSvg
>>> writeChartSvg "other/usage.svg" lineExample

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

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.1, 0.0.2, 0.0.3, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.3.0
Dependencies adjunctions (>=4.4 && <4.5), attoparsec (>=0.13.2 && <0.15), base (>=4.7 && <5), Color (>=0.3 && <0.4), containers (>=0.6 && <0.7), cubicbezier (>=0.6 && <0.7), foldl (>=1.4 && <1.5), formatn (>=0.2 && <0.3), lucid (>=2.9 && <2.10), mtl (>=2.2.2 && <2.3), neat-interpolation (>=0.5.1 && <0.6), numhask (>=0.10 && <0.11), numhask-array (>=0.10 && <0.11), numhask-space (>=0.10 && <0.11), optics-core (>=0.4 && <0.5), random (>=1.2.1 && <1.3), scientific (>=0.3 && <0.4), tagsoup (>=0.14 && <0.15), text (>=1.2 && <1.3), time (>=1.9 && <1.10), transformers (>=0.5 && <0.6) [details]
License BSD-3-Clause
Copyright Tony Day (c) 2017
Author Tony Day
Maintainer tonyday567@gmail.com
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 2022-02-05T02:31:24Z
Distributions NixOS:0.3.0
Downloads 1585 total (40 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-02-05 [all 1 reports]