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

Copy Markdown View Source

The interval kind (spec/04 §5.1): an error bar per row, new in the second cut.

ChannelRole, familyTypes
xposition, xtime, number, categoryone of x, y
lo, hiposition, y (x across)numberreq
yposition, ynumber, categoryone of x, y
seriesseriescategory, text, number

Options: cap (6, the caps' width in pixels). Parts: stroke. Paint: stroke. One group per row: a line from lo to hi at x with a cap across each end. Given y instead of x it draws across: lo and hi are then positions along x, which the model's table reads as it reads x0 and x1 (Macaw.Frame.Layer.Channel.read_as/3). Needs no statistic. Anchor: the bar's hi end. Budget: w. Summary: "error bar chart".