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. Axis label

Axis label

axis.labelBlock elementGraph

A value on an axis, named. It puts a name where the number would have gone and takes the number away — the way to mark what a reader should recognise: a period, a mean, a boundary, a solution. The axis is chosen by which coordinate is given, as a point takes x and y. `line: true` adds a rule across the plot at that value, under the marks.

Attributes

labelRequiredImplicit
rich-text
Also written: text, nameThe name itself — rich text, so `$\pi$` sets as maths.The head shorthand supplies it: axis.label:value
x
parametised-number
The value on the x axis to name. Give this OR y, never both.
y
parametised-number
The value on the y axis to name.
line
boolean
Also written: rule, gridlineA rule across the plot at that value, drawn under the marks.
Defaultfalse
dashed
boolean
Whether that rule is dashed.
Defaulttrue
size
number
Also written: text-sizeText size, in the graph's points.
Default20
colour
colour
Also written: colorThe name, and its rule.
Defaultneutral
hidden
boolean
Declared and framed, but not drawn.
Defaultfalse

Allowed in

canvas.graph { }cue { }cue.draw { }cue.trace { }cue.highlight { }cue.spotlight { }

Examples

axis.label(x: 3.1416; label: $\pi$)
axis.label(y: 1; label: $1$; line: true; colour: teal)
axis.label(x: 1.5708; label: $\tfrac{\pi}{2}$; line: true; dashed: false)
On this page
AttributesAllowed inExamples
Axis label · Internote