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

Copy Markdown View Source

The funnel step (spec/04 §5.1, §7.1): a funnel's stages as centered widths across the plot, a frame concern (needs: [:frame]), drawn by a rect layer.

One row a stage, in the rows' order: field is the stage's value. Each stage spans the plot's width in proportion to its value over the greatest stage's (macaw_data's max, never the step's own), at least neck (0) of the width, centered: the step adds x0 and x1, its pixel edges, and share, the stage's value over the first stage's, its conversion. A nil or non-numeric value places nothing (nils).