new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Observable Plot · all subjects

curves

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Curve definition and purpose

A curve defines how to turn a discrete representation of a line as a sequence of points into a continuous path; that is, how to interpolate between points. Curves are used by the line, area, and link marks, and are implemented by d3-shape.

Curve option parameter

The curve option can be either a string specifying a named curve method or a function invoked as a D3 curve factory with a given context.

Tension option for curves

The tension option is used for fine-tuning curves and only has an effect on bundle, cardinal, and Catmull-Rom splines. For bundle splines, tension corresponds to beta; for cardinal splines, it corresponds to tension; for Catmull-Rom splines, it corresponds to alpha.

Example: lineY with curve option

Example code showing how to use a curve option with Plot.lineY: ```js Plot.plot({ marks: [ Plot.lineY(numbers, {curve: "catmull-rom"}), Plot.dotY(numbers, {x: (d, i) => i}) ] }) ``` This example uses the catmull-rom curve to interpolate between points in a line mark.

Give your agent this brain