lenards/elm-patternfly-charts/1.0.1

PF6.Charts.BoxPlot

Box plot chart — shows the statistical distribution of one or more datasets.

Each box displays:

  • Whiskers from min to max
  • Box from Q1 to Q3
  • Median line
  • Mean dot (optional)

Types

An opaque box plot configuration.

type alias BoxData =
{ label : String
, min : Float
, q1 : Float
, median : Float
, q3 : Float
, max : Float
}

Statistical summary for a single box.

Constructor

fromData : List BoxData -> BoxPlotChart

Create a box plot from a list of statistical summaries.

chart =
    BoxPlot.fromData
        [ { label = "Jan", min = 10, q1 = 25, median = 40, q3 = 60, max = 80 }
        , { label = "Feb", min = 15, q1 = 30, median = 45, q3 = 65, max = 85 }
        ]

Modifiers

Set chart width in pixels. Default: 500.

Set chart height in pixels. Default: 300.

Set the x-axis label.

Set the y-axis label.

Set the chart title.

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

Renderer

toSvg : BoxPlotChart -> Html msg

Render to Html msg.