chart-svg: Charting library targetting SVGs.
This package provides a charting library targetting SVG as the rendered output.
Usage
>>>
import Chart
>>>
:set -XOverloadedLabels
>>>
let xs = fmap (fmap (uncurry Point)) [[(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)]] :: [[Point Double]]
>>>
let anns = zipWith (\w c -> LineA (LineStyle w c Nothing Nothing Nothing Nothing)) [0.015, 0.03, 0.01] palette1_
>>>
let lineExample = mempty & (#chartList .~ zipWith Chart anns (fmap (fmap PointXY) xs)) & #hudOptions .~ defaultHudOptions & #svgOptions .~ defaultSvgOptions :: ChartSvg
writeChartSvg "other/line.svg" lineExample
See Chart for a broad overview of concepts, and Chart.Examples for a variety of practical examples.
Modules
[Index] [Quick Jump]
Downloads
- chart-svg-0.2.3.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
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
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, 0.3.1, 0.3.2, 0.3.3, 0.4.0, 0.4.1.0, 0.4.1.1, 0.5.0.0, 0.5.1.0, 0.5.1.1, 0.5.2.0, 0.6.0.0, 0.6.1.0, 0.7.0.0, 0.8.0.0, 0.8.0.1, 0.8.0.2, 0.8.0.3 (info) |
---|---|
Dependencies | attoparsec (>=0.14 && <0.15), base (>=4.7 && <5), chart-svg, Color (>=0.3 && <0.4), containers (>=0.6 && <0.7), cubicbezier (>=0.6 && <0.7), foldl (>=1.4 && <1.5), generic-lens (>=1.2 && <3.0), JuicyPixels (>=3.3 && <3.4), lens (>=5.0 && <5.1), linear (>=1.21 && <1.22), lucid (>=2.9 && <2.10), mtl (>=2.2.2 && <2.3), numhask (>=0.8 && <0.9), numhask-space (>=0.8 && <0.9), reanimate (>=1.1.1.0 && <1.2), reanimate-svg (>=0.13 && <0.14), 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), unordered-containers (>=0.2 && <0.3) [details] |
Tested with | ghc ==8.8.4 || ==8.10.4 || ==9.0.1 || ==9.2.0.20210821 |
License | BSD-3-Clause |
Copyright | Tony Day (c) 2017 |
Author | Tony Day |
Maintainer | tonyday567@gmail.com |
Revised | Revision 1 made by tonyday567 at 2021-09-08T00:31:34Z |
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-09-07T22:58:56Z |
Distributions | LTSHaskell:0.7.0.0, Stackage:0.8.0.2 |
Reverse Dependencies | 5 direct, 2 indirect [details] |
Executables | reanimate-example |
Downloads | 3239 total (138 in the last 30 days) |
Rating | 2.0 (votes: 1) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user [build log] All reported builds failed as of 2021-09-07 [all 2 reports] |