ReferenceyLabel

<yLabel>

<yLabel> is a Graphical component that specifies a label for the vertical axis on a <graph>.

Attributes and Properties

Attributes for <yLabel>
AttributeTypeValues
anchor = "…"point
draggable = "…"boolean"true" "false"
forObject = "…"
layer = "…"number
positionFromAnchor = "…"text"upperright" "upperleft" "lowerright" "lowerleft" "top" "bottom" "left" "right" "center"
Props for <yLabel name="y">
PropertyType
$y.anchorpoint
$y.backgroundColortext
$y.disabledboolean
$y.draggableboolean
$y.fixedboolean
$y.fixLocationboolean
$y.hasLatexboolean
$y.hiddenboolean
$y.latexlatex
$y.layernumber
$y.positionFromAnchortext
$y.texttext
$y.textColortext
$y.textStyleDescriptiontext
$y.valueyLabel

Example: <yLabel> on a <graph>

The <yLabel> component is a child of a <graph>. A <yLabel> can contain text, inline display mathematics ( <m>) or <math> components.


Example: <yLabel> on bottom of <graph>

To change the default top position of the <yLabel> to the bottom, apply the yLabelPosition attribute within the <graph> definition.


Example: Change default <yLabel> alignment

Use the yLabelAlignment attribute within the <graph> definition to choose between a left alignment and a right alignment for the <yLabel>. The default position is left, which means the label appears to the left of the vertical axis.