Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/terezka/elm-charts

Create SVG charts in Elm.
https://github.com/terezka/elm-charts

charts elm svg

Last synced: 5 days ago
JSON representation

Create SVG charts in Elm.

Awesome Lists containing this project

README

        

# elm-charts

Make SVG charts in all Elm. The package can draw charts at a variety of different levels of customizations, from basic charts with standard features to very custom styles. The library also allows including your very own SVG elements still easily utilizing the coordinate system calculated from your data, as well as editing the SVG made by the package. It has great support for interactivity, layering different charts, and adding irregular details.

You can check out [the many examples](https://elm-charts.org)!

Here is also a basic example to copy and play with.

```elm
import Chart as C
import Chart.Attributes as CA

main : Svg msg
main =
C.chart
[ CA.height 300
, CA.width 300
]
[ C.xTicks []
, C.yTicks []
, C.xLabels []
, C.yLabels []
, C.xAxis []
, C.yAxis []
, C.bars [] [ C.bar identity [] ] [ 2, 4, 3 ]
]
```