lenards/elm-patternfly-charts/1.0.0

NOTE: the latest version is 1.0.1

PF6.Charts.Sparkline

Sparkline — a miniature, axis-free line chart for inline use.

Typically embedded in tables, cards, or list items to show a metric's trend without the overhead of a full chart.

Type

An opaque sparkline configuration.

Constructor

fromData : List Float -> Sparkline

Create a sparkline from a list of y values (x is implicit index).

sparkline =
    Sparkline.fromData [ 42, 55, 48, 72, 63, 58, 70 ]

Modifiers

Set sparkline width in pixels. Default: 150.

Set sparkline height in pixels. Default: 40.

Override the line color.

Apply a Theme.

Whether to fill the area under the line. Default: True.

Show a skeleton placeholder instead of the sparkline while data is loading.

Renderer

toSvg : Sparkline -> Html msg

Render to Html msg.