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

Copy Markdown View Source

charts.error_bars (spec/13 §7.1), a second-cut chart: an error bar per row from its lo to its hi (the interval kind) and a point at its value (a symbol), colored by an optional series. It needs no statistic: the bounds are the rows' own. The orientation parameter lays the bars "vertical" (a band or a number along x) or "horizontal" (x along y, the bounds along x). New in the second cut.

iex> Macaw.Frame.Charts.ErrorBars.id()
"charts.error_bars"

Summary

Functions

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

Its fixtures (spec/14 §1): a benchmark's means with their confidence intervals.

The fragment: an interval layer and a symbol layer over one band scale.

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, an x, a value, its lo and hi bounds, an optional series.

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 benchmark's means with their confidence intervals.

fragment()

@spec fragment() :: map()

The fragment: an interval layer and a symbol layer over one band scale.

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, an x, a value, its lo and hi bounds, an optional series.