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

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

Elm library for simple bar and pie charts
https://github.com/simonh1000/elm-charts

Last synced: 2 months ago
JSON representation

Elm library for simple bar and pie charts

Awesome Lists containing this project

README

        

# Elm Chart library

An Elm library for creating simple horizontal and vertical bar charts, and for pie charts.

This library supports three basic chart types. The horizontal bar chart is built with simple div elements (based on an idea from [D3](https://d3js.org)); the vertical one uses a flexbox layout and some CSS transforms, while the Pie chart builds on [this post](http://www.smashingmagazine.com/2015/07/designing-simple-pie-charts-with-css/) using Svg elements.

![Pie chart](https://github.com/simonh1000/elm-charts/blob/master/pie.png?raw=true)

## Try the examples

```
cd examples
elm-reactor
```

load http://localhost:8000

## Changelog

3.1.0 - Add dimensions to model and use these for the line chart