Expand description
StatFunnel: stage polygons for funnel and pyramid charts.
Input: x (the stage; stages keep data order, repeated stages are summed)
and y (the stage’s value). Output: polygon vertices — several rows per
stage sharing a stage key, in drawing order — as fx/fy in a layout
where the chart spans fx ∈ [-0.5, 0.5] (centred) and fy ∈ [0, 1]
(top = first stage). The layout lives outside x/y because the stage
mapping makes the x scale discrete; x/y keep the stage and value.
Per-row columns: fx, fy, x, y, stage, value, pct_first
(value as a share of the first stage), pct_total (share of the sum) and
the label anchor label_y.
Structs§
- Stat
Funnel - Funnel stat behind
GeomFunnel.
Enums§
- Funnel
Shape - How stage widths and heights encode the values.