gipsy-king/radar-chart/2.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, 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/benjajaja/radar-chart.

What we checked: The repo moved to github.com/benjajaja/radar-chart. Rebuilt with git archive from commit 4fa1568f87e7 of https://github.com/benjajaja/radar-chart (zip prefix gipsy-king-radar-chart-79fe882/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 c49fbd0b62b5459417f41576ed1c3cc3e894a849.

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/gipsy-king/radar-chart/zipball/2.0.0/

RadarChart

Customize a chart a little bit, or use defaults

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

Chart 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).

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

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

type Maximum
= FixedMax Float
| Infer

Fixed axis maximum or use highest data point of series

Show a radar 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.