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

`charts.funnel` (spec/13 §7.1), a second-cut chart: a stage per row, in the rows' order,
a bar centered across the plot whose width is its value's share of the greatest stage,
at least `neck` of the plot, labeled with its conversion share of the first stage. The
widths and shares are the `funnel` spatial step's (`Macaw.Frame.Transforms.Funnel`, over
macaw_data's `max`), a frame concern; the bars are `rect`s at its pixel edges along `x`
and a band per stage along `y`. New in the second cut.

    iex> Macaw.Frame.Charts.Funnel.id()
    "charts.funnel"

# `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): a sign-up funnel's five stages.

# `fragment`

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

The fragment: the funnel step under a rect per stage on a band per stage.

# `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 `stage` and its `value`, in funnel order.

---

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