Skip to content

Vizzu / Modules / vizzu / Styles / Text

Interface: Text

vizzu.Styles.Text

Properties

backgroundColor

Optional backgroundColor: Color

The background color of the displayed text.


color

Optional color: Color

The color of the displayed text.


maxFractionDigits

Optional maxFractionDigits: number

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


numberFormat

Optional numberFormat: "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, 'prefixed' uses scientific notation.


numberScale

Optional numberScale: string

Number scale used for prefixed number format.


textAlign

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

The alignment of the displayed text.