# `ExRatatui.Widgets.Chart.Dataset`
[🔗](https://github.com/mcass19/ex_ratatui/blob/v0.8.2/lib/ex_ratatui/widgets/chart/dataset.ex#L1)

A single named series within a `ExRatatui.Widgets.Chart`.

Each dataset owns its `(x, y)` points and decides how they're drawn —
the chart's role is to supply the axes, legend, and surrounding
block. Multiple datasets render together in the same chart area, so
scale them against shared `:x_axis` / `:y_axis` bounds.

## Fields

  * `:name` - legend caption; `nil` excludes the dataset from the legend
  * `:data` - list of `{x, y}` numeric tuples (required, may be empty)
  * `:marker` - one of `:braille` (default), `:dot`, `:block`, `:bar`,
    `:half_block`
  * `:graph_type` - one of `:line` (default), `:scatter`, `:bar`
  * `:style` - `%ExRatatui.Style{}` controlling line/marker color

## Examples

    iex> alias ExRatatui.Widgets.Chart.Dataset
    iex> %Dataset{name: "temp", data: [{0.0, 12.0}, {1.0, 14.0}]}
    %ExRatatui.Widgets.Chart.Dataset{
      name: "temp",
      data: [{0.0, 12.0}, {1.0, 14.0}],
      marker: :braille,
      graph_type: :line,
      style: %ExRatatui.Style{}
    }

# `graph_type`

```elixir
@type graph_type() :: :line | :scatter | :bar
```

# `marker`

```elixir
@type marker() :: :braille | :dot | :block | :bar | :half_block
```

# `t`

```elixir
@type t() :: %ExRatatui.Widgets.Chart.Dataset{
  data: [{number(), number()}],
  graph_type: graph_type(),
  marker: marker(),
  name: String.t() | nil,
  style: ExRatatui.Style.t()
}
```

---

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