Skip to content

Interface: ChartTextStyle ​

The formatting of a block of chart text: a c:txPr (a legend's, an axis' labels', data labels') or a title's c:rich. Read off the block's a:bodyPr and its first paragraph: the paragraph's a:pPr and a:defRPr, and in a title, the first run's a:rPr over them. Every field is null where the block states nothing.

Properties ​

align ​

align: string | null

Paragraph alignment (a:pPr/@algn: l, ctr, r, …).


bold ​

bold: boolean | null

Bold (@b).


color ​

color: ColorRef | null

The solid colour, unresolved: a chart part is read without a theme.


colorTransformed ​

colorTransformed: boolean

Whether color carries a transform (a:lumMod, …) that only a theme can apply.


fontName ​

fontName: string | null

The Latin typeface (a:latin/@typeface), a theme token such as +mn-lt included.


italic ​

italic: boolean | null

Italic (@i).


rotationDeg ​

rotationDeg: number | null

Rotation in degrees (a:bodyPr/@rot / 60000), or null when unstated or outside -90 to 90.


sizePt ​

sizePt: number | null

Size in points (@sz).


underline ​

underline: string | null

Underline style (@u, e.g. sng, none).