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

Copy Markdown View Source

charts.line (spec/13 §4.1): one line per series through the x scale its x_scale parameter names, points on demand, axis titles when given, and a legend only from two series. Copied from visualize's Visualize.Chart.Presets.line_chart/1 and Visualize.Components.line_chart/1: the x scale its first datum chose is the x_scale parameter, its accessors a slot's roles, its colors theme roles.

iex> Macaw.Frame.Charts.Line.id()
"charts.line"

Summary

Functions

The curve names a series chart's curve parameter takes.

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

Its fixtures (spec/14 §1).

The fragment: a cartesian frame of one line layer and its optional points.

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.1).

Its slot: data, with x, y and an optional series (spec/13 §4.1).

Functions

curves()

@spec curves() :: [String.t(), ...]

The curve names a series chart's curve parameter takes.

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).

fragment()

@spec fragment() :: map()

The fragment: a cartesian frame of one line layer and its optional points.

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.1).

slots()

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

Its slot: data, with x, y and an optional series (spec/13 §4.1).