# `FrappeUIPhx.Charts.Legend`
[🔗](https://github.com/moacirbishopcamata/frappe_ui_phx/blob/v0.3.1/lib/frappe_ui_phx/charts/legend.ex#L1)

Legenda: marcador colorido + nome. `items` é `[%{label, color}]` ou vem das séries.

# `chart_legend`

## Attributes

* `items` (`:list`) (required) - [%{label: String, color: String}].
* `class` (`:any`) - Defaults to `nil`.
* Global attributes are accepted.

# `from_names`

```elixir
@spec from_names([String.t()]) :: [map()]
```

Itens de legenda a partir de nomes, usando a paleta do tema na ordem.

---

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