gipsy-king/radar-chart/1.0.1

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.

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/benjajaja/radar-chart exists but has no tag 1.0.1; Software Heritage has no tag 1.0.1 for it; no fork with tag 1.0.1 found (60 same-name repos checked); no cached copy. Use another version.

Details

RadarChart

Customize a chart a little bit, or use defaults

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

defaultOptions : Options

Get a default options object.

Show a radar chart

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

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

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

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