Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/avh4/elm-dataviz

simple rendering of tabular data
https://github.com/avh4/elm-dataviz

Last synced: 8 days ago
JSON representation

simple rendering of tabular data

Awesome Lists containing this project

README

        

This package provides a simple way to render tabular views of data.

```elm
import Table

data =
[ [ 1, 2, 3, 4 ]
, [ 10, 5, 24, 3, 7]
, [ 2, 7, 23903, 4039 , 1024, 2 ]
]

main =
data
|> Table.table
[ ("sum", List.sum >> toString)
, ("min", List.foldr min 9999 >> toString)
, ("max", List.foldr max -9999 >> toString)
]
```

## Running the examples from source

```bash
(cd examples; elm-package install; elm-reactor)
open http://localhost:8080/AllExamples.elm
```