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

Copy Markdown View Source

charts.parallel (spec/13 §7.1), a second-cut chart: parallel coordinates, a polyline per row through its dimensions (a many role), each dimension a band along x with its own scale up y. The rows are folded long by macaw_data's fold, and the parallel spatial step (Macaw.Frame.Transforms.Parallel) places each reading through its dimension's scale, its domain the dimension's extent (macaw_data's), or with normalize: "zero" that extent widened to zero; the polyline kind draws one line per row's declared identity. normalize applies to every dimension: the step takes one (decision, macaw_frame#89). New in the second cut.

iex> Macaw.Frame.Charts.Parallel.id()
"charts.parallel"

Summary

Functions

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

Its fixtures (spec/14 §1): hosts by CPU, memory, disk and latency.

The fragment: fold and the parallel step under a polyline per item.

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, its dimensions (many) and its declared identity id.

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): hosts by CPU, memory, disk and latency.

fragment()

@spec fragment() :: map()

The fragment: fold and the parallel step under a polyline per item.

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, its dimensions (many) and its declared identity id.