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

Copy Markdown View Source

charts.scatter (spec/13 §4.7): a circle per row colored by its series, a legend from two series. Copied from visualize's Visualize.Chart.Presets.scatter_plot/1; its x scale is the x_scale parameter, since a fragment cannot read its data (spec/13 decisions).

iex> Macaw.Frame.Charts.Scatter.id()
"charts.scatter"

Summary

Functions

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

Its fixtures (spec/14 §1): two clusters of hosts by latency and load.

The fragment: a circle layer over two linear scales.

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

Its slot: data, an x, a y, an optional series and an optional label.

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): two clusters of hosts by latency and load.

fragment()

@spec fragment() :: map()

The fragment: a circle layer over two linear scales.

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

slots()

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

Its slot: data, an x, a y, an optional series and an optional label.