Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/avh4/elm-dataviz
- Owner: avh4
- Created: 2015-09-02T02:44:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-16T04:13:07.000Z (over 8 years ago)
- Last Synced: 2024-10-27T12:05:44.854Z (about 2 months ago)
- Language: Elm
- Size: 20.5 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This package provides a simple way to render tabular views of data.
```elm
import Tabledata =
[ [ 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
```