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

Copy Markdown View Source

The parallel step (spec/04 §5.1, §7.1): parallel coordinates' per-dimension scales, a frame concern (needs: [:frame]), for the polyline kind.

Its rows are long, one a dimension's reading (a fold's output): fields: [dimension, value] (["key", "value"] by default). Each dimension is placed through its own linear scale onto the plot's height, its domain the dimension's readings' extent (macaw_data's aggregate, never the step's own arithmetic), or with normalize: "zero" that extent widened to hold zero. The step adds as ("y"), the reading's pixel along y, the low end at the plot's bottom; a dimension of one reading sits at the middle and a nil or non-numeric reading places nothing (nil).