Manual
Overview
Language
IntroductionScenes & structureText & inlineGraphsCode panesAnimationDataReuse & logicExpressions & parameters
Elements
Text
ParagraphHeading 1Heading 2Heading 3Heading 4Unordered ListDivider
Media
ImageTableEquation
Callouts
NoteDefinitionExampleTask
Graph
GraphLinePolygonCurveIntegralScatterHistogramPointSegmentVectorCircleSquareRectangleTriangleStarDiamondHexagonTextAxis labelAxis BraceFitResidualsContourHeatmapParameter
Code
Code canvasLines
Animation
CueDraw cueTrace cueHighlight cueSpotlight cueType cue
Structure
SceneStep
Reference
Internote Reference
Inline
Formatting
BoldItalicsInline CodeHighlightLink
Text colour
Red textOrange textYellow textGreen textTeal textBlue textPurple textPink textGrey text
Maths
Maths
Reference
Internote ReferenceValueConstant
Other
FootnoteIcon
Directives
DatasetIncludeConstantsTemplatePresetConditionalForIgnore
Keyframes
KeyframeZoom keyframe
Attribute types
?
  1. Inline
  2. Reference
  3. Value

Value

valueInline elementReference

Renders a live value in prose: the current value of whatever the reference points at — a derived attribute like a fit's slope, a reader-set parameter, or a plain attribute. The number updates as the reader manipulates the graph, so stated values can never disagree with computed ones.

Attributes

refRequiredImplicit
reference
What to display: #id.member reaches a derived attribute (!value:#f.slope()) or any attribute of an identified element.The head shorthand supplies it: value:value
format
How the number reads: number (plain), percent (0.6827 renders as 68.27%), or scientific notation.
Defaultnumber
digits
number
Significant figures to show. Omit for the default (about four).
maths
boolean
Also written: mathTypeset the value through KaTeX, so it matches neighbouring $…$ runs.
Defaultfalse

Examples

The fitted slope is !value:#f.slope().
P(a \le X \le b) comes to !value:#area.value(digits: 2).
The band holds !value:#band.value(digits: 3; format: percent) of the mass.
$P \approx$ !value:#band.value(format: percent; maths: true)
On this page
AttributesExamples
Value · Internote