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

`charts.pie` (spec/13 §4.5): a pie, or a donut through `inner`, over its values with the
pad angle, a ring from `inner` to the outer radius, contrast labels hidden where they
don't fit, and a center text in a donut. Copied from visualize's
`Visualize.Chart.Presets.pie_chart/1` and the gallery's `Examples.Charts.DonutChart`
(`examples/lib/examples/charts/donut_chart.ex`); the preset's outer radius `R − 10` is
the frame's margin of `10`.

    iex> Macaw.Frame.Charts.Pie.id()
    "charts.pie"

# `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): visualize's pie fixture as the gallery's donut.

# `fragment`

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

The fragment: a polar frame of one arc layer and its labels.

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

# `slots`

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

Its slot: `data`, a `value` and an optional `label`.

---

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