avh4 / elm-dataviz

simple rendering of tabular data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

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

About

simple rendering of tabular data


Languages

Language:Elm 99.3%Language:Shell 0.7%