blissfully/elm-chartjs-webcomponent/2.0.0

Renamed to vendrinc/elm-chartjs-webcomponent. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as blissfully/elm-chartjs-webcomponent still install under that name. 2 versions of 2 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/vendrinc/elm-chartjs-webcomponent.

What we checked: The repo moved to github.com/vendrinc/elm-chartjs-webcomponent and tag 2.0.0 is there; its commit 7295e0468027 is from 2019-05-22 13:24 UTC, before the version was published (2019-05-22 13:25 UTC); every file Elm uses matches a copy in a Lamdera package cache from 2021-02-13, from before the change; elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip's SHA-1 is not the published one (GitHub's zip no longer comes out byte for byte the same), so the contents were checked instead.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/blissfully/elm-chartjs-webcomponent/zipball/2.0.0/

Chartjs.Chart

A type-safe bridge to a Chartjs web component.

Note: this library isn't usable without including Chartjs as a Javascript dependency in your project, along with the sister Javascript web component that goes with this library. Please see instructions here: https://github.com/Blissfully/elm-chartjs-webcomponent

type alias Chart =
{ chartType : Type
, data : Data
, options : Options
}

Required definition for a Chartjs chart

type Type
= Bar
| Line
| Doughnut
| Pie

Basic type of chart

chart : Int -> Int -> Chart -> Html msg

Given dimensions and a chart, creates an HMTL node

defaultChart : Type -> Chart

Given a type, creates a sane Chart config you can update