Skip to content

Interface: LayoutYaxisTitleFont ​

Axis title font. Defaults to layout.font with 1.2× size.

Properties ​

PropertyTypeDescription
color?stringText color.
family?stringCSS font-family list. The renderer uses the first family it can load and falls back through the list.
lineposition?| "under" | "over" | "through" | "under+over" | "under+through" | "over+under" | "over+through" | "through+under" | "through+over" | "under+over+through" | "under+through+over" | "over+under+through" | "over+through+under" | "through+under+over" | "through+over+under" | "none"Text decoration: under, over and/or through joined with + (e.g. under+over), or none.
shadow?stringCSS text-shadow behind the text (2px 2px 3px black; only the first shadow is drawn), none, or auto for a thin halo in the contrast color of the text.
size?numberFont size in CSS pixels. Minimum: 1
style?"normal" | "italic"Font style.
textcase?"normal" | "word caps" | "upper" | "lower"Letter case transform: upper, lower, word caps (first letter of each word), or normal.
variant?| "normal" | "small-caps" | "all-small-caps" | "all-petite-caps" | "petite-caps" | "unicase"Capitals variant (CSS font-variant-caps). The SDF text renderer approximates small and petite caps with uppercase letters at a reduced size.
weight?number | "normal" | "bold"Font weight: a CSS numeric weight (1–1000), normal or bold. Range: 1 – 1000

Released under the MIT License.