Macaw.Frame.Charts.Boxplot (macaw_frame v0.1.0)

Copy Markdown View Source

charts.boxplot (spec/13 §7.1), a second-cut chart: a box per category from its first to its third quartile, the median across it and whiskers to its least and greatest readings within the fences, with the readings beyond as points. Every number is macaw_data's (macaw_data#336): aggregate(fn: ["box", "min", "max"], by: category) writes the quartiles, the whiskers' ends and the extremes as packed float64 columns, and the outliers step keeps each reading beyond its group's fences as its own input row. The box kind draws the summary and a symbol layer the outliers; the frame computes no statistic. New in the second cut.

whisker reads the whiskers: "tukey" to the readings within 1.5 IQRs of the box, the outliers drawn beyond them when show_outliers is set; "minmax" to the least and the greatest reading, the min and max of the same step, with no outlier beyond them.

iex> Macaw.Frame.Charts.Boxplot.id()
"charts.boxplot"

Summary

Functions

What it draws, for a person and a builder's library.

Its fixtures (spec/14 §1): three services' response times, a few slow outliers.

The fragment: macaw_data's box summary under the box kind, its outliers as symbols.

The fragment's id in the catalog store.

What the fragment is: a whole design, or layers placed in one.

Its namespace (spec/13 §2).

Its parameters (spec/13 §3, §7.1).

Its slot: data, a category and a value.

Functions

doc()

@spec doc() :: String.t()

What it draws, for a person and a builder's library.

fixtures()

@spec fixtures() :: [map()]

Its fixtures (spec/14 §1): three services' response times, a few slow outliers.

fragment()

@spec fragment() :: map()

The fragment: macaw_data's box summary under the box kind, its outliers as symbols.

id()

@spec id() :: String.t()

The fragment's id in the catalog store.

kind()

@spec kind() :: :design | :layers

What the fragment is: a whole design, or layers placed in one.

namespace()

@spec namespace() :: :charts | :maps | :diagrams

Its namespace (spec/13 §2).

parameters()

@spec parameters() :: [{String.t(), map()}]

Its parameters (spec/13 §3, §7.1).

slots()

@spec slots() :: %{required(String.t()) => map()}

Its slot: data, a category and a value.