lauber00/line-charts/1.0.0

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 e767c3b500c5 of https://github.com/volgariver6/line-charts (zip prefix lauber00-line-charts-8ed8149/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 da35244e03bdd7ae72c088a2a7ca7ba589ca943a.

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.0/

LineChart.Axis.Intersection

Where is the intersection?

The intersection is where your two axis lines meet. By default this is at the smallest coordinate possible (the downmost left corner), but it need not be as illustated below.

type alias Config =
Config

Use in the LineChart.Config passed to LineChart.viewCustom.

chartConfig : LineChart.Config Data msg
chartConfig =
  { ...
  , intersection = Intersection.default
  , ...
  }
default : Config

Sets the intersection at the minimum on both the range and domain.

intersectionConfig : Intersection.Config
intersectionConfig =
  Intersection.default

See the full example here.

atOrigin : Config

Sets the intersection as close to the origin as your range and domain allows.

intersectionConfig : Intersection.Config
intersectionConfig =
  Intersection.atOrigin

See the full example here.

at : Float -> Float -> Config

Sets the intersection to your chosen x and y respectively.

intersectionConfig : Intersection.Config
intersectionConfig =
  Intersection.at 0 3

See the full example here.

custom : (Range -> Float) -> (Range -> Float) -> Config

Sets the intersection to your chosen x and y, given the range and domain respectively.

intersectionConfig : Intersection.Config
intersectionConfig =
  Intersection.custom .min middle


middle : Coordinate.Range -> Float
middle { min, max } =
  min + (max - min) / 2

See the full example here.