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

`charts.horizontal_bar` (spec/13 §4.4): `charts.bar` turned on its side, the categories
on a band `y` reading top to bottom and the values along `x` from zero. Copied from
visualize's `Visualize.Chart.Presets.horizontal_bar_chart/1`.

    iex> Macaw.Frame.Charts.HorizontalBar.id()
    "charts.horizontal_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 horizontal bar fixture, languages by use.

# `fragment`

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

The fragment: a linear x through zero, a band y, and a rect per row.

# `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): a left margin of 100 for the categories.

# `slots`

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

Its slot: as `charts.bar`'s.

---

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