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

Copy Markdown View Source

charts.status_timeline (spec/13 §4.13): a stretch per row at its entity, colored by its state's declared role, a legend listing every declared state by name, and a brush on x writing the window. Its state field must declare its values and status, so its legend and colors come from the source's meaning: one that does not is {:requires, "state", :values} at the binding. Copied from the gallery's board demo status design (Examples.BoardDemo, examples/lib/examples/board_demo/status.ex).

iex> Macaw.Frame.Charts.StatusTimeline.id()
"charts.status_timeline"

Summary

Functions

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

Its fixtures (spec/14 §1): three services' states over an hour.

The fragment: a band layer per stretch, colored by the state's declared role.

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.13).

Its slot: data, an entity, a stretch from and to, and its state.

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' states over an hour.

fragment()

@spec fragment() :: map()

The fragment: a band layer per stretch, colored by the state's declared role.

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.13).

slots()

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

Its slot: data, an entity, a stretch from and to, and its state.