Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 529 Bytes

codeReferencingAcrossBlocks.md

File metadata and controls

33 lines (29 loc) · 529 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 "https://gicentre.github.io/data/bicycleHiresLondon.csv" []
        , enc []
        , bar []
        ]
fDistrib : Spec
fDistrib =
    barChart