Packages

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

Current section

Files

Jump to
uncharted lib live_chart pie_chart pie_slice.ex
Raw

lib/live_chart/pie_chart/pie_slice.ex

defmodule LiveChart.PieChart.PieSlice do
@moduledoc """
A struct representing pie chart slice display properties.
"""
defstruct [:label, :percentage, :fill_color]
@type t() :: %__MODULE__{
label: String.t(),
percentage: Float.t(),
fill_color: atom()
}
end