Skip to content

Vizzu / Modules / types/styles / Text

Interface: Text

types/styles.Text

Text formatting properties.

Properties

color

Optional color: null | Color

The color of the displayed text.


maxFractionDigits

Optional maxFractionDigits: null | number

The maximum number of digits in fraction part if the text contains a number.


numberFormat

Optional numberFormat: null | "none" | "grouped" | "prefixed"

The format of the number. Only applicable for texts showing numerical data such as marker and axis labels. 'grouped' uses thousand separators (e.g. 1 234 567), 'prefixed' uses scientific notation (e.g. 1.234k).


numberScale

Optional numberScale: null | string

Number scale used for prefixed number format.


textAlign

Optional textAlign: null | "center" | "left" | "right"

The alignment of the displayed text.