0.0.5 • Published 7 years ago

elm-chartjs v0.0.5

Weekly downloads
3
License
BSD3
Repository
github
Last release
7 years ago

Elm bindings to Chartjs.

This package allows you to mix Chartjs canvas based charts into your Elm application. The api is modeled after Graphics.Element and is well typed (in most cases).

Bindings exist for all 6 Chartjs chart types

  • Line
  • Bar
  • StackedBar
  • Radar
  • Polar
  • Pie
  • Doughnut

Currently listening for events in charts is not supported, but will be soon.

Usage

Set up elm-package.json

"source-directories": ["node_modules/elm-chartjs/src", ...]
import Chartjs.Line as Line

view : Model -> Html
view model = div []
  [ fromElement <| Line.chart' 700 300 model.stuff ]

Examples

run

elm reactor

To see the examples.

0.0.5

7 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago