lollipop
A value drawn as a stem with a dot at its end. What a bar is for a quantity that fills an interval, this is for one that stands at a POINT — a discrete distribution above all, where P(X = k) belongs to the single value k and a bar drawn there claims a width the quantity does not have. Two forms, as a histogram has: a position and a value, paired by position as a scatter's are (lollipop(x: 0, 1, 2; y: 0.25, 0.5, 0.25)), or ONE axis alone, which is the readings — lollipop(x: #sample.score) stands a stem of height 3 at every value that occurs three times, a tally by distinct value that invents no grid at all. Which axis carries the readings is the axis the stems stand on; in the paired form a categorical axis decides (nothing is measured along names), and where both axes are numeric orientation does. The stems stand on the baseline, so the value axis reaches it.
Only withplane
#Attributes
#rolls.face). Paired with y by position; a pair either axis cannot read is dropped whole. Written alone it is the readings instead, and the mark counts them.Can be written as shorthand: lollipop:valuex by position — or, written alone, the readings to be counted, with the counts running out along x.verticalbluefalse$maths$ and inline formatting render. Fades and draws with the element.hidden: true !cue.to{false}(at: 2) reveals it — and unlike a cue, a hidden element still frames the plot, so the axes do not jump when it appears.falseeditable: graph. Nothing at all on a graph that is not editable.false#Allowed in
#Examples
lollipop(
x: 0, 1, 2, 3
y: 0.125, 0.375, 0.375, 0.125
)lollipop(x: #rolls.face)lollipop(
x: 0.42, 0.31, 0.19
y: North, South, East
show-labels: true
)