adius/vectual/3.0.0

NOTE: the latest version is 6.0.0

Renamed to ad-si/Vectual. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as adius/vectual still install under that name. 3 versions of 7 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/ad-si/Vectual.

What we checked: The repo moved to github.com/ad-si/Vectual and tag 3.0.0 is there; its commit 6ba5d4b0eb4f is from 2021-02-06 15:42 UTC, before the version was published (2021-02-06 15:42 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/adius/vectual/zipball/3.0.0/

Vectual.BarChart

This module creates a simple SVG bar chart.

Bar Chart

defaultBarChartConfig : BarChartConfig

The default configuration for the bar chart. Create your own config by overwriting the fields you want to change.

barChart =
    BarChart
        { defaultBarChartConfig
            | xLabelFormatter = utcWeek
        }
        timeData
viewBarChart : BarChartConfig -> Data -> Svg msg

Create SVG from bar chart config and a data set.

svgElement =
    viewBarChart config dataSet
BarChartConfig
-> Data
-> MetaData Unitless coordinates
-> Int
-> Entry
-> Svg msg

Helper to get SVG element for a single bar.