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

Copy Markdown View Source

charts.percentile_band (spec/13 §4.12): the outer and inner bands and the median of a latency over time, broken at gaps, a dashed bad rule at the target when given, and median points colored by which side of the target they are on under the polarity. Copied from the gallery's board demo latency design (Examples.BoardDemo, examples/lib/examples/board_demo/latency.ex).

iex> Macaw.Frame.Charts.PercentileBand.id()
"charts.percentile_band"

Summary

Functions

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

Its fixtures (spec/14 §1): a latency's percentiles over two hours, with a gap.

The fragment: a percentile band layer, its target rule and its median points.

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, §4.12).

Its slot: data, a time x, the median and four optional band edges.

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): a latency's percentiles over two hours, with a gap.

fragment()

@spec fragment() :: map()

The fragment: a percentile band layer, its target rule and its median points.

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, §4.12).

slots()

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

Its slot: data, a time x, the median and four optional band edges.