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/
Considering the following data:
data =
[ { x = -1, y = -2 }
, { x = 5, y = 6 }
]From this we can see that the smallest x is -1 and the largest x is 5. We call this the x-data range. By default, the axis range is the same as your data range, but we can make it far more complicated than that.
Opposite your data range which is only calculated from from your data, your axis range can be edited with this module. For example, you can make it larger than your data range, as illustrated below.
Notice how the data range begins and ends where the pink line begins and ends.
This is cool because it looks good. You can also make the axis range smaller than the data range, and the result will we a "zoomed in" view of one section of the data, which can also be useful.
Take a look at some of these functions if these effects interests you.
Set the axis range to the full length of your data range.
rangeConfig : Range.Config
rangeConfig =
Range.defaultSee the full example here.
Straight up set your axis range by specifying the minimum and maximum, respectively.
rangeConfig : Range.Config
rangeConfig =
Range.window -0.5 4.5See the full example here.
Add a given amount of pixels to the minimum and maximum of your axis range, respectively.
rangeConfig : Range.Config
rangeConfig =
Range.padded 40 40See the full example here.
First of all, this configuration is part of the configuration in
Axis.custom.