Skip to content

Commit

Permalink
republish as benjajaja/radar-chart
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrosse-midokura committed Jan 24, 2022
1 parent 2098141 commit 0e3cb83
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
21 changes: 21 additions & 0 deletions 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.
2 changes: 1 addition & 1 deletion 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",
Expand Down
11 changes: 10 additions & 1 deletion 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)

Expand Down Expand Up @@ -33,6 +40,7 @@ view options labels series =
++ List.indexedMap (axisLabel options axisCount) labels


{-| Datum series -}
type alias DatumSeries =
{ color : String
, data : List Float
Expand All @@ -50,12 +58,13 @@ type alias Options =
, lineStyle : LineStyle
}


{-| Axis style -}
type AxisStyle
= Minimal
| Web Int


{-| Line style -}
type LineStyle
= Empty
| Filled Float
Expand Down

0 comments on commit 0e3cb83

Please sign in to comment.