# `Fude.Layer`
[🔗](https://github.com/hattoriai/fude/blob/v0.1.0/lib/fude/layer.ex#L1)

One layer of a chart: a kind (`:bar`, `:line`...), its channels and its
options. A chart has one layer, or several drawn one over the other
(`Fude.layers/2`).

# `kind`

```elixir
@type kind() ::
  :bar
  | :line
  | :area
  | :scatter
  | :bubble
  | :pie
  | :donut
  | :histogram
  | :heatmap
  | :rule
  | :text
  | :sparkline
  | :number
  | :trend
  | :progress
  | :waterfall
  | :funnel
  | :gauge
  | :choropleth
  | :bubble_map
```

# `t`

```elixir
@type t() :: %Fude.Layer{
  channels: %{required(atom()) =&gt; Fude.Channel.t()},
  id: String.t() | nil,
  kind: kind(),
  options: map()
}
```

# `new`

```elixir
@spec new(kind(), keyword()) :: t()
```

A layer of a kind, from the keyword list that the functions of `Fude`
take: channels and options. Raises an `ArgumentError` that says what is
wrong: an unknown key names the keys of the kind.

---

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