Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 446 Bytes

simpleChart.md

File metadata and controls

24 lines (21 loc) · 446 Bytes
elm
dependencies
gicentre/elm-vegalite
latest
import VegaLite exposing (..)

Bicycle Hires

barChart : Spec
barChart =
    let
        enc =
            encoding
                << position X [ pName "AvHireTime" ]
                << position Y [ pAggregate opCount ]
    in
    toVegaLite
        [ dataFromUrl "http://gicentre.github.io/data/bicycleHiresLondon.csv" [], enc [], bar [] ]