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

Copy Markdown View Source

The symbol kind (spec/04 §4.7), copied from visualize's Visualize.Chart.Mark.Shapes symbol.

ChannelRole, familyTypes
xposition, xtime, number, categoryreq
yposition, ynumber, categoryreq
valuesize (area, pixels²)number
seriesseriescategory, text, number

Parts: fill, stroke, marker. Paint: fill. One path per row through Macaw.Draw.Shape.Symbol in the style's marker shape (circle by default) and size (64), or value, translated to the row's position. value is an area in square pixels, read through the frame's size scale when it declares one. A marker shape bound to a field reads it per row through the layer's color scale: a reading the scale maps to a role draws that role's glyph (spec/11 §8.1), any other the symbol type it names, else a circle. In polar it keeps its glyph at the bent point. A dense opaque cartesian layer leaves out covered points; a point at or after the delivery's claim draws provisional. Budget: w. Summary: "scatter plot", "bubble chart" with value.