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

`charts.heatmap` (spec/13 §4.9): a cell per row colored through a sequential or
diverging scale, over band or continuous `x`, its legend titled on top. Copied from the
gallery's `Examples.Charts.Heatmap` (`examples/lib/examples/charts/heatmap.ex`); whether
`x` is a band or continuous with `x_end` is the `x_scale` parameter, since a fragment
cannot read its bindings.

    iex> Macaw.Frame.Charts.Heatmap.id()
    "charts.heatmap"

# `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): the gallery's heatmap, requests by weekday and hour.

# `fragment`

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

The fragment: a rect per cell through a color scale.

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

# `slots`

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

Its slot: `data`, an `x`, an optional `x_end`, a `y` and a `value`.

---

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