Macaw.Frame.Charts.Sparkline (macaw_frame v0.1.0)

Copy Markdown View Source

charts.sparkline (spec/13 §4.14): the Sparkline component's document (Macaw.Frame.Sparkline, spec/01 §6): a furnitureless line with an optional area under it, a dot at the newest reading and a rule at the field's declared target, broken at gaps, named by the bound field's label and summarized by its first, last, least and greatest readings.

iex> Macaw.Frame.Charts.Sparkline.id()
"charts.sparkline"

Summary

Functions

What it draws, for a person and a builder's library.

Its fixtures (spec/14 §1): an hour of a latency with a declared target.

The fragment: a line, its optional area, newest point and target rule, no furniture.

The fragment's id in the catalog store.

What the fragment is: a whole design, or layers placed in one.

Its namespace (spec/13 §2).

Its parameters (spec/13 §3, §4.14).

Its slot: data, an x and a y (spec/13 §4.14).

Functions

doc()

@spec doc() :: String.t()

What it draws, for a person and a builder's library.

fixtures()

@spec fixtures() :: [map()]

Its fixtures (spec/14 §1): an hour of a latency with a declared target.

fragment()

@spec fragment() :: map()

The fragment: a line, its optional area, newest point and target rule, no furniture.

id()

@spec id() :: String.t()

The fragment's id in the catalog store.

kind()

@spec kind() :: :design | :layers

What the fragment is: a whole design, or layers placed in one.

namespace()

@spec namespace() :: :charts | :maps | :diagrams

Its namespace (spec/13 §2).

parameters()

@spec parameters() :: [{String.t(), map()}]

Its parameters (spec/13 §3, §4.14).

slots()

@spec slots() :: %{required(String.t()) => map()}

Its slot: data, an x and a y (spec/13 §4.14).