From 0e3cb83a8ccd6402cd7cbc059114d35b7b872f79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Gro=C3=9Fe?= Date: Mon, 24 Jan 2022 12:03:53 +0000 Subject: [PATCH] republish as benjajaja/radar-chart --- LICENSE | 21 +++++++++++++++++++++ elm.json | 2 +- src/RadarChart.elm | 11 ++++++++++- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f4a18f1 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Benjamin Große + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/elm.json b/elm.json index d866372..0ad1a5f 100644 --- a/elm.json +++ b/elm.json @@ -1,6 +1,6 @@ { "type": "package", - "name": "gipsy-king/radar-chart", + "name": "benjajaja/radar-chart", "summary": "An SVG radar chart", "license": "BSD-3-Clause", "version": "1.0.0", diff --git a/src/RadarChart.elm b/src/RadarChart.elm index 582fe54..69f8825 100644 --- a/src/RadarChart.elm +++ b/src/RadarChart.elm @@ -1,5 +1,12 @@ module RadarChart exposing (AxisStyle(..), DatumSeries, LineStyle(..), Options, defaultOptions, view) +{-| A small library to display just one type of charts: radar charts, also known as web chart, spider chart, spider web chart, star chart, star plot, cobweb chart, irregular polygon, polar chart, or Kiviat diagram. + +# Definition +@docs AxisStyle, DatumSeries, LineStyle, Options, defaultOptions, view +-} + + import Svg exposing (Svg, circle, svg, text, text_) import Svg.Attributes exposing (dominantBaseline, fill, fillOpacity, fontSize, stroke, strokeLinecap, strokeLinejoin, strokeWidth, textAnchor, viewBox) @@ -33,6 +40,7 @@ view options labels series = ++ List.indexedMap (axisLabel options axisCount) labels +{-| Datum series -} type alias DatumSeries = { color : String , data : List Float @@ -50,12 +58,13 @@ type alias Options = , lineStyle : LineStyle } - +{-| Axis style -} type AxisStyle = Minimal | Web Int +{-| Line style -} type LineStyle = Empty | Filled Float