terezka / elm-charts

Create SVG charts in Elm.

Home Page:https://www.elm-charts.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

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

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 ]
    ]

About

Create SVG charts in Elm.

https://www.elm-charts.org

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Elm 100.0%