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

`charts.ridgeline` (spec/13 §7.1), a second-cut chart: a density per series, each a ridge
on its own baseline, the ridges stacked down the plot and overlapping by `overlap`. The
estimate is macaw_data's `density` operation grouped by `series` (macaw_data#309), never
the frame's. The baselines are a frame concern: the `ridge` spatial step places each
series on a band scale down the plot's height, the series its domain, and writes each
row's `baseline` pixel and its `top`, the baseline less the density scaled so the
greatest density spans `1 + overlap` bands (decision, macaw_frame#96). An `area` draws
each ridge from `y0` its baseline to `y` its top, and a `text` names each ridge at the
left of its baseline. The x axis is the readings'; the y axis is the ridges', so it
draws none. New in the second cut.

    iex> Macaw.Frame.Charts.Ridgeline.id()
    "charts.ridgeline"

# `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 regions' response times.

# `fragment`

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

The fragment: density by series, the ridge step, an area per ridge and its name.

# `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`, a `value` and its `series`.

---

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