Packages

Server-side rendered SVG graphing components for Phoenix and LiveView

Current section

Files

Jump to
plox lib plox graph_scalar.ex
Raw

lib/plox/graph_scalar.ex

defmodule Plox.GraphScalar do
@moduledoc """
TODO: this is a public module that graph component implementers will interact
with, so it should be documented
"""
defstruct [:value, :data_point]
def new(value, data_point) do
%__MODULE__{value: value, data_point: data_point}
end
end