The polar model (spec/03 §7): angle and r as position scales, color and any other
declared scale. Its grid, layers and polar axes sit in a group translated to the plot's
center; R = min(w, h) / 2 is the outer radius.
- The angle (§7.2):
angle's range is a sweep from a start,[start, start + sweep]in radians clockwise from 12 o'clock (start: 0,sweep: 360degrees); a zero or over-full sweep is{:sweep, value}. A categorical angle widens its range by half a step at each end so band centers span the sweep. - Furniture (§7.3): an axis on
angleis an arc at itsradius(a circle on a full turn) with ticks outward and spokes as its grid; onra spoke bysideoratwith ticks across and arcs as its grid; every coordinate rounded to six decimals with negative zero folded; a zero-radius ring not drawn. - The bend (§7.4,
bend/2): a layer laid out as in cartesian (xthroughangle,ythroughr) is bent about the center; over a categorical angle straight segments are chords. Polar-native kinds and paths are not bent (their kind declares it). - The ring rule (§7.5): an
rrange of:ring(or%{ring: inner}) resolves to[inner, min(w, h) / 2 − (4 + dr + t + 4)]for the frame's outward labels, aninnerunder 1 a share of that outer radius. - Hit-testing, writes and summary (§7.6):
invert/2fromatan2and the distance from the center; a pick writesselection, neverwindow; its group's.itemkey.
Copied from visualize's Visualize.Chart.Frame (:polar), its polar furniture and
Visualize.Chart.Mark.Bend.