georgesboris/elm-widgets-charts-alpha/9.2.0

NOTE: the latest version is 9.2.2

W.Chart.Colors

Accessible colors based on https://www.s-ings.com/scratchpad/oklch-smooth/ .

Using palettes

mapWithColors : Palette -> (String -> a -> b) -> List a -> List b
mapWithColorsAndOffset : Int -> Palette -> (String -> a -> b) -> List a -> List b
colorByIndex : Palette -> Int -> String
type Palette

Palettes

Basic

Mixed

Single Colors

Creating Palettes

{ l10 : String
, l20 : String
, l30 : String
, l40 : String
, l50 : String
, l60 : String
, l70 : String
, l80 : String
, l90 : String
}

Palette Utilities

toColors : Palette -> List String
toColorWithShades : Palette -> Int -> List String