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

`charts.status_timeline` (spec/13 §4.13): a stretch per row at its entity, colored by
its state's declared role, a legend listing every declared state by name, and a brush
on `x` writing the window. Its `state` field must declare its `values` and `status`, so
its legend and colors come from the source's meaning: one that does not is `{:requires,
"state", :values}` at the binding. Copied from the gallery's board demo status design
(`Examples.BoardDemo`, `examples/lib/examples/board_demo/status.ex`).

    iex> Macaw.Frame.Charts.StatusTimeline.id()
    "charts.status_timeline"

# `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): three services' states over an hour.

# `fragment`

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

The fragment: a band layer per stretch, colored by the state's declared 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.13).

# `slots`

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

Its slot: `data`, an `entity`, a stretch `from` and `to`, and its `state`.

---

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