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

Copy Markdown View Source

charts.force_graph (spec/13 §5.7): one force layout per realization shared by the links and the nodes (the step's prepare/3), warm across deliveries and cold in a printout, links ending at their nodes, contrast labels hidden where they don't fit. Copied from the gallery's Examples.Charts.ForceGraph (examples/lib/examples/charts/force_graph.ex). Its nodes are the flows' distinct ids, drawn in the first series color: the optional nodes slot and its group, which would color them by group, are not read.

iex> Macaw.Frame.Charts.ForceGraph.id()
"charts.force_graph"

Summary

Functions

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

Its fixtures (spec/14 §1): a team's collaborations.

The fragment: the force step's links and nodes.

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, §5.7).

Its slot: links, its value optional (spec/13 §5).

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): a team's collaborations.

fragment()

@spec fragment() :: map()

The fragment: the force step's links and nodes.

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, §5.7).

slots()

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

Its slot: links, its value optional (spec/13 §5).