Macaw.Frame.Transforms.Sankey (macaw_frame v0.1.0)

Copy Markdown View Source

The sankey step (spec/04 §7.2): a flow diagram of the flows, laid out by Macaw.Draw.Layout.Sankey in the plot (needs: [:frame]).

fields: [source, target] and field (required) the flow's value; the nodes are the distinct ids in order of first appearance, or the nodes table's rows keyed by id. padding (8) is the gap between nodes, a node 24 wide; size defaults to the plot. output: "nodes" answers one row per node, id, index, depth, height, layer, value, x0, x1, y0, y1; "links" one row per flow, source, target, value, width, both ends and the ribbon's path. A flow naming a node the nodes table lacks is {"fields", {:unknown_node, id}}.

Summary

Functions

What the frame is called when a data layer's rows are laid out by this step (spec/11 §2.2).

Functions

phrase()

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

What the frame is called when a data layer's rows are laid out by this step (spec/11 §2.2).