Packages

A simple Elixir charting library that generates easy-to-customize charts.

Current section

Files

Jump to
uncharted lib live_chart base_datum.ex
Raw

lib/live_chart/base_datum.ex

defmodule LiveChart.BaseDatum do
@moduledoc """
Exposes a struct representing a basic data point
for a LiveChart.
"""
defstruct [:name, :fill_color, :values]
@type t() :: %__MODULE__{
name: String.t(),
fill_color: atom(),
values: list(number)
}
end