Packages

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

Current section

Files

Jump to
uncharted lib live_chart axes base_axes.ex
Raw

lib/live_chart/axes/base_axes.ex

defmodule LiveChart.Axes.BaseAxes do
@moduledoc """
Exposes a struct representing configuration for axes on LiveCharts.
"""
defstruct [:magnitude_axis, :x, :y, show_gridlines: true]
@type t() :: %__MODULE__{
magnitude_axis: LiveChart.Axes.MagnitudeAxis.t() | nil,
x: LiveChart.Axes.MagnitudeAxis.t() | nil,
y: LiveChart.Axes.MagnitudeAxis.t() | nil,
show_gridlines: boolean()
}
end