Current section
Files
Jump to
Current section
Files
lib/live_chart/progress_chart/dataset.ex
defmodule LiveChart.ProgressChart.Dataset do
@moduledoc """
Exposes a struct representing a data set that drives
a LiveChart Progress Chart.
"""
defstruct [
:background_stroke_color,
:label,
:secondary_label,
:to_value,
:current_value,
:percentage_text_fill_color,
:percentage_fill_color,
:label_fill_color
]
@typep color :: atom()
@type t() :: %__MODULE__{
background_stroke_color: color(),
label: String.t() | nil,
secondary_label: String.t() | nil,
to_value: number(),
current_value: number(),
percentage_text_fill_color: color(),
percentage_fill_color: color(),
label_fill_color: color()
}
end