Packages

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

Current section

Files

Jump to
uncharted lib live_chart line_chart line.ex
Raw

lib/live_chart/line_chart/line.ex

defmodule LiveChart.LineChart.Line do
@moduledoc """
A struct representing a Line on a cartesian plane betwen two `LiveChart.LineChart.Point` structs
"""
alias LiveChart.LineChart.Point
defstruct [:start, :end]
@type t() :: %__MODULE__{
start: Point.t(),
end: Point.t()
}
end