Packages

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

Current section

Files

Jump to
uncharted lib live_chart line_chart line_chart.ex
Raw

lib/live_chart/line_chart/line_chart.ex

defprotocol LiveChart.LineChart do
@spec points(LiveChart.chart() | LiveChart.ColumnChart.Dataset.t()) ::
list(LiveChart.LineChart.Point.t())
def points(chart)
@spec lines(LiveChart.chart() | LiveChart.ColumnChart.Dataset.t()) ::
list(LiveChart.LineChart.Line.t())
def lines(chart)
end