gipsy-king/radar-chart/1.0.0

NOTE: the latest version is 3.0.1

Renamed to benjajaja/radar-chart. It is published under that name, and new versions come out there.

Versions published as gipsy-king/radar-chart still install under that name. 4 versions of 5 come from the new location (see their notes). 1 version could not be recovered and cannot be installed.

Rerouted (renamed, needs approval). 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/benjajaja/radar-chart.

What we checked: The repo moved to github.com/benjajaja/radar-chart and tag 1.0.0 is there; its commit 0e3cb83a8ccd is from 2022-01-24 12:03 UTC, after the version was published (2020-06-04 08:31 UTC); elm.json differs from package.elm-lang.org's; the exposed modules match docs.json; the zip's SHA-1 is not the published one and nothing else confirms its contents.

We could not verify this copy against what was published, so the Lamdera compiler asks before using it (y/n). Without a terminal, as in CI, it stops with an error unless approved:

  • lamdera make --auto-approve-package-rerouting approves rerouted versions for that run,
  • LAMDERA_AUTO_APPROVE_PACKAGE_REROUTING=1 does the same for every run in that environment,
  • LAMDERA_CACHE=off skips the Lamdera package server altogether: packages come from package.elm-lang.org and GitHub only, as with elm, and a rerouted version then fails to download.

Details · package.elm-lang.org's zip: https://github.com/gipsy-king/radar-chart/zipball/1.0.0/

RadarChart

Show a default chart

view : Options -> List String -> List DatumSeries -> Svg msg

Render a radar chart with options, labels, and some values

defaultOptions : Options

Get a default options object.

type alias DatumSeries =
{ color : String
, data : List Float
}

You can have multiple "series" or polygons on one chart

Customize a chart a little bit

type alias Options =
{ fontSize : Float
, margin : Float
, strokeWidth : Float
, axisColor : String
, axisStyle : AxisStyle
, lineStyle : LineStyle
}

Chart styling options:

= Minimal
| Web Int

Axis style:

  • Minimal is just a line
  • Web count is a web with count "divisions"
= Empty
| Filled Float

The line style can be Empty (just lines) or Filled opacity (more like an area chart).