terezka/elm-plot/4.0.1

NOTE: this package is not compatible with Elm 0.19.1

Plot.Hint

Attributes for altering the view of your hint.

Notice that this element will only be rendered when using plotInteractive!

P.S. You also have to add elm-plot.css for it to look nice.

Definition

type alias Attribute msg =
Config msg -> Config msg
type alias HintInfo =
{ xValue : Float
, yValues : List (Maybe (List Value))
}

The available info provided to your hint view.

type alias IsLeftSide =
Bool

Styling

viewCustom : (HintInfo -> IsLeftSide -> Html msg) -> Attribute msg

Uses your own view to display the hint box.

lineStyle : Style -> Attribute msg

Add styles to the line indicating the hovered value.