lauber00/line-charts/1.0.1

NOTE: the latest version is 1.0.3

Renamed to volgariver6/line-charts. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as lauber00/line-charts still install under that name. 4 versions of 4 come from the new location (see their notes).

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/volgariver6/line-charts.

What we checked: The repo moved to github.com/volgariver6/line-charts. Rebuilt with git archive from commit 0f11d0eac8ee of https://github.com/volgariver6/line-charts (zip prefix lauber00-line-charts-eb18a18/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 753022dabb810e0f2ef35feb04e89192f71460de.

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/lauber00/line-charts/zipball/1.0.1/

LineChart.Axis.Line

If you're confused as to what "axis range" and "data range" means, check out Axis.Range for an explanation!

type alias Config msg =
Config msg

This configuration is part of the configuration in Axis.custom.

axisConfig : Axis.Config Data msg
axisConfig =
  Axis.custom
    { ..
    , range = AxisLine.default
    , ...
    }

See full example here.

default : Config msg

Draws the full length of your axis range.

axisLineConfig : AxisLine.Config msg
axisLineConfig =
  AxisLine.default

See full example here.

full : Color -> Config msg

Same as the default, except you get to pick the color.

axisLineConfig : AxisLine.Config msg
axisLineConfig =
  AxisLine.full Color.red

See full example here.

rangeFrame : Color -> Config msg

Draws the full length of your data range in your given color.

axisLineConfig : AxisLine.Config msg
axisLineConfig =
  AxisLine.rangeFrame Color.red

See full example here.

none : Config msg

Removes the axis line entirely.

axisLineConfig : AxisLine.Config msg
axisLineConfig =
  AxisLine.none

See full example here.

custom : (Range -> Range -> Properties msg) -> Config msg

Given your data range and axis range respectively, define your own axis line configuration.

axisLineConfig : AxisLine.Config msg
axisLineConfig =
  AxisLine.custom <| \dataRange axisRange ->
    { color = Colors.gray
    , width = 2
    , events = []
    , start = dataRange.min
    , end = 5
    }

See full example here.

type alias Properties msg =
{ color : Color
, width : Float
, events : List (Attribute msg)
, start : Float
, end : Float
}