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

`charts.stacked_bar` (spec/13 §4.4): the many `values` role stacked by `macaw_data`'s
`stack`, one segment per key in each category's bar, a legend of the keys. Copied from
visualize's `Visualize.Chart.Presets.stacked_bar_chart/1`.

    iex> Macaw.Frame.Charts.StackedBar.id()
    "charts.stacked_bar"

# `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): visualize's stacked bar fixture, three keys a quarter.

# `fragment`

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

The fragment: a rect per stacked segment over the stack of the values role.

# `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, §4.4).

# `slots`

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

Its slot: `data`, a `category` and the many `values`, one field per series.

---

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