# `Macaw.Frame.Charts.Tree`
[🔗](https://github.com/dcoai/macaw_frame/blob/v0.1.0/lib/macaw/frame/charts/tree.ex#L1)

`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"

# `doc`

```elixir
@spec doc() :: String.t()
```

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

# `fixtures`

```elixir
@spec fixtures() :: [map()]
```

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

# `fragment`

```elixir
@spec fragment() :: map()
```

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

# `hierarchy`

```elixir
@spec hierarchy() :: %{required(String.t()) =&gt; map()}
```

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

# `id`

```elixir
@spec id() :: String.t()
```

The fragment's id in the catalog store.

# `kind`

```elixir
@spec kind() :: :design | :layers
```

What the fragment is: a whole design, or layers placed in one.

# `namespace`

```elixir
@spec namespace() :: :charts | :maps | :diagrams
```

Its namespace (spec/13 §2).

# `parameters`

```elixir
@spec parameters() :: [{String.t(), map()}]
```

Its parameters (spec/13 §3, §5.1).

# `slots`

```elixir
@spec slots() :: %{required(String.t()) =&gt; map()}
```

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
