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. Elements
  2. Graph
  3. Integral

Integral

integralBlock elementGraph

The area under a curve between two values, shaded. It names its curve the way a trace names its path — `of: #bell` for a curve in the same pane, or an expression to shade directly — and samples the region from the curve itself, so it follows a keyframed expression and a parameter driving either limit. The region closes along the axis: what is shaded is the area between the curve and y = 0, and where the curve dips below the axis the shading follows it down.

Attributes

ofRequiredImplicit
curve-path
Also written: curve, underThe curve to shade under: `#id` for a curve in this pane, or an expression shaded directly.The head shorthand supplies it: integral:value
fromRequired
parametised-number
Also written: a, startWhere the region starts. May be an expression in the pane's parameters.
toRequired
parametised-number
Also written: b, endWhere it ends. May be an expression in the pane's parameters.
colour
colour
Also written: colorThe wash and its edges.
Defaultblue
opacity
number
How heavy the wash is.
Default0.35
edges
boolean
Draw a line down to the axis at each limit.
Defaulttrue
label
rich-text
Text drawn in the middle of the region — rich text, so `$maths$` renders.
hidden
boolean
Declared and framed, but not drawn.
Defaultfalse
lock
boolean
Also written: lockedA reader may not edit it on an editable graph.
Defaultfalse
z
parametised-number
Draw order within the pane.

Derived attributes

Computed while the element renders — read one with #id.name in attribute position or !value:#id.name() in prose, never set.

valueDerived
The computed area of the shaded interval — the number the shading is. Cite it with !value:#id.value() and a probability label can never drift from the drawing.

Examples

integral(of: #bell; from: -1; to: 1; label: $0.68$)
integral(of: x^2; from: 0; to: b; colour: teal)
integral(of: #velocity; a: 0; b: 5; edges: false; opacity: 0.2)
On this page
AttributesDerived attributesExamples
Integral · Internote