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

`charts.sankey` (spec/13 §5.5): ribbons colored by their source under the node rects,
each node labeled outside its rect toward the nearer edge. Copied from the gallery's
`Examples.Charts.SankeyDiagram` (`examples/lib/examples/charts/sankey_diagram.ex`).
Nodes are the flows' distinct ids, labeled by id (spec/13 §5: the `nodes` slot is
optional and this fragment reads `links` alone).

    iex> Macaw.Frame.Charts.Sankey.id()
    "charts.sankey"

# `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): an energy budget's flows.

# `fragment`

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

The fragment: the sankey step's links as ribbons and nodes as rects.

# `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.

# `links`

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

A network's links slot (spec/13 §5): `source`, `target` and `value`.

# `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.5).

# `slots`

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

Its slot: `links` (spec/13 §5).

---

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