Popularity
2.4
Stable
Activity
7.4
Declining
1
2
0

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

chart-svg alternatives and similar packages

Based on the "Project" category

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 lts nightly

A chart library targetting SVG.

[](other/venn.svg)

test charts

mempty

writeCharts "other/mempty.svg" [] produces the following svg:


<svg xmlns="http://www.w3.org/2000/svg" height="300.0" viewBox="-0.77 -0.52 1.54 1.04" width="450.0" xmlns:xlink="http://www.w3.org/1999/xlink">
</svg>

The default Svg options are for a height of 300 and an aspect ratio (width/height) of 1.5. The viewBox is centered on (0,0) with height of 1 and a width of the aspect ratio with an extra 0.02 of outer padding in all 4 directions.

unit

[Chart (RectA defaultRectStyle) [SpotRect unitRect]]

[](other/unit.svg)


<svg xmlns="http://www.w3.org/2000/svg" height="300.0" viewBox="-0.7725 -0.5225 1.545 1.045" width="450.0" xmlns:xlink="http://www.w3.org/1999/xlink">
  <g stroke-opacity="0.5" fill-opacity="0.5" stroke="#666666" stroke-width="5.0e-3" fill="#ff0000">
    <rect height="1.0" width="1.5" x="-0.75" y="-0.5"/>
  </g>
</svg>

Huds & HudOptions

defaultHudOptions

[](other/hud.svg)

Chart Types

rect

[](other/rect.svg)

line

[](other/line.svg)

text

[](other/text.svg)

glyph

[](other/glyph.svg)

bar

[](other/bar.svg)

pixel

[](other/pixel.svg)

tests

boundText

[](other/boundText.svg)

compound

[](other/compound.svg)

label

[](other/label.svg)

legend

[](other/legend.svg)

recipe

stack build --exec "$(stack path --local-install-root)/bin/examples" --file-watch

reference