georgesboris/elm-widgets-charts-alpha/9.2.1

NOTE: the latest version is 9.2.2

W.Chart.Tooltip

fromY : List (Attribute msg x y z point) -> WidgetXY msg x y z a
fromZ : List (Attribute msg x y z point) -> WidgetXYZ msg x y z a
fromYZ : List (Attribute msg x y z point) -> WidgetXYZ msg x y z a
( Context msg x y z
-> List RenderDatum
-> RenderDatum
-> List (Html msg)
)
-> Attribute msg x y z point

Useful when formatting based on the entire data for the x points.

W.Chart.formatByX
    (\_ points point ->
        let
            total : Float
            total =
                sumAt .value points
        in
        [ viewPercentage total point.value ]
    )
(Context msg x y z -> List RenderDatum -> List (Html msg))
-> Attribute msg x y z point
yAxisLabel : List (Html msg) -> Attribute msg x y z point
zAxisLabel : List (Html msg) -> Attribute msg x y z point
(Context msg x y z -> List RenderDatum -> List (Html msg))
-> Attribute msg x y z point
(Context msg x y z -> List RenderDatum -> List (Html msg))
-> Attribute msg x y z point
(Context msg x y z -> List RenderDatum -> List (Html msg))
-> Attribute msg x y z point
type alias Attribute msg x y z point =
Attr (Attributes msg x y z point)
{ x : Float
, y : Float
, content : List (Html msg)
}
-> Html msg