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

`charts.slope` (spec/13 §7.1), a second-cut chart: an entity's `before` and `after`
readings joined by a `segment` across two band columns, `before` on the left and `after`
on the right, with a `text` at each end. Each row's two readings are moved under their
columns by two macaw_data `fold`s (`before` to `k0` and `v0`, `after` to `k1` and `v1`),
so a segment reads both ends from one row and the column bands are named by the roles;
the frame computes nothing. A segment that rises is drawn in its series color, as one
that falls: color is the entity's. New in the second cut.

    iex> Macaw.Frame.Charts.Slope.id()
    "charts.slope"

# `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): five services' error rates before and after a release.

# `fragment`

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

The fragment: two folds under a segment per entity and a text at each end.

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

# `slots`

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

Its slot: `data`, an `entity` with its `before` and `after` readings.

---

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