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

Copy Markdown View Source

charts.violin (spec/13 §7.1), a second-cut chart: a violin per category, the mirrored kernel density estimate of its readings. The estimate is macaw_data's density operation grouped by category (macaw_data#309), drawn by the violin kind, which scales each point's density to the band; the frame computes no statistic. New in the second cut.

With show_box, a narrow box inside each violin: the box kind over the box plot's own summary step (Macaw.Frame.Charts.Boxplot), macaw_data's box aggregate by category written as packed columns (macaw_data#336), its whiskers to the fenced ends.

iex> Macaw.Frame.Charts.Violin.id()
"charts.violin"

Summary

Functions

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

Its fixtures (spec/14 §1): three services' response times.

The fragment: macaw_data's density by category under the violin kind.

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.

fragment()

@spec fragment() :: map()

The fragment: macaw_data's density by category under the violin kind.

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.