adius/vectual/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).

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.