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

Copy Markdown View Source

charts.tree (spec/13 §5.1): a tree or a cluster (a dendrogram) laid out in either orientation, its links curved, elbowed or straight, internal nodes filled, leaves labeled outward. Copied from visualize's Visualize.Chart.Presets.tree_diagram/1 and Visualize.Components.Tree, and the gallery's Examples.Charts.ClusterDendrogram (examples/lib/examples/charts/cluster_dendrogram.ex): a layout frame whose layers lay out the nodes slot by the tree or cluster step.

iex> Macaw.Frame.Charts.Tree.id()
"charts.tree"

Summary

Functions

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

Its fixtures (spec/14 §1): a small service hierarchy.

The fragment: links and nodes laid out by the tree or cluster step.

A hierarchy's slot (spec/13 §5): nodes, id, parent, label and value.

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

Its slot: a hierarchy's nodes (spec/13 §5).

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 small service hierarchy.

fragment()

@spec fragment() :: map()

The fragment: links and nodes laid out by the tree or cluster step.

hierarchy()

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

A hierarchy's slot (spec/13 §5): nodes, id, parent, label and value.

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

slots()

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

Its slot: a hierarchy's nodes (spec/13 §5).