Macaw.Frame.Layers.PercentileBand (macaw_frame v0.1.0)

Copy Markdown View Source

The percentile_band kind (spec/04 §4.6), copied from visualize's Visualize.Chart.Mark.Shapes percentile band.

ChannelRole, familyTypes
xposition, xtime, numberreq
medianposition, ynumberreq
inner_lo, inner_hiposition, ynumber
outer_lo, outer_hiposition, ynumber

Parts: fill, stroke, curve. Paint: fill for the bands, stroke for the median. Draws through Macaw.Draw.Shape.Line and Macaw.Draw.Shape.Area as Macaw.Draw.Shape.PercentileBand composes them: the outer band (class="outer", the paint at fill-opacity 0.2, no stroke), the inner band (class="inner", 0.4), then the median line (class="median", stroked, no fill). A band whose two channels are absent is not drawn. No series: one band from all its rows. Budget: 4 × w. Summary: "percentile band chart", extremes over median. Gap breaking: all three paths break together where any of their fields breaks.