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 1767f18f9fd0 of https://github.com/volgariver6/line-charts (zip prefix lauber00-line-charts-8808ae7/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 5881948ccc6b0a273f283741d4b711667795ab55.
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.2/
Hopefully, these are self-explanatory.
Change the style of your dots
Use in the LineChart.Config passed to LineChart.viewCustom.
chartConfig : LineChart.Config Data Msg
chartConfig =
{ ...
, dots = Dots.default
, ...
}What is a dot style?
The style of the dot includes the size of the dot and various other qualities like whether it has a border or not. See your options under Styles.
Draws a white outline around all your dots.
Adds a hover effect on the given dot!
dotsConfig : Maybe Data -> Dots.Config Data
dotsConfig hovered =
Dots.hoverOne hoveredSee the full example here.
Adds a hover effect on several given dots!
dotsConfig : List Data -> Dots.Config Data
dotsConfig hovered =
Dots.hoverMany hoveredSee the full example here.
Change the style of all your dots.
dotsConfig : Dots.Config Data
dotsConfig =
Dots.custom (Dots.full 5)See the full example here.
Change the style of any of your dots. Particularly useful for hover states, but it can also be used for creating another dimension for your chart by varying the size of your dots based on some property.
Extra dimension example
customDotsConfig : Dots.Config Data
customDotsConfig =
let
styleLegend _ =
Dots.full 7
styleIndividual datum =
Dots.full <| (datum.height - 1) * 12
in
Dots.customAny
{ legend = styleLegend
, individual = styleIndividual
}See the full example here.
Hover state example
customDotsConfig : Maybe Data -> Dots.Config Data
customDotsConfig maybeHovered =
let
styleLegend _ =
Dots.disconnected 10 2
styleIndividual datum =
if Just datum == maybeHovered
then Dots.empty 8 2
else Dots.disconnected 10 2
in
Dots.customAny
{ legend = styleLegend
, individual = styleIndividual
}See the full example here.
Makes dots plain and solid.
Pass the radius.
Makes dots with a white core and a colored border.
Pass the radius and the width of the border.
Makes dots with a colored core and a white border.
Pass the radius and the width of the border.
Makes dots with a colored core and a less colored, transparent "aura".
Pass the radius, the width of the aura, and the opacity of the aura (A number between 0 and 1).
Change the shape of your dots
The shape type changes the shape of your dots.
See the full example here.
What is a dot?
Dots denote where your data points are on your line. They can be different shapes (circle, square, etc.) for each line.