AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated 7.13.0 version of this document. Switch to the 8.3.0 version to see the up to date information.

{typedef} anychart.graphics.vector.TextStyle Improve this Doc

Format of style the text. May be applied to plain and html texts.
Name Type Description
color string | undefined Color. https://www.w3schools.com/html/html_colors.asp.
decoration anychart.graphics.vector.Text.Decoration | string | undefined Read more at anychart.graphics.vector.Text.Decoration.
direction anychart.graphics.vector.Text.Direction | string | undefined Read more at anychart.graphics.vector.Text.Direction.
fontFamily string | undefined Font family https://www.w3schools.com/cssref/pr_font_font-family.asp.
fontSize string | number | undefined Font size. More at anychart.graphics.vector.Text#fontSize.
fontStyle anychart.graphics.vector.Text.FontStyle | string | undefined Read more at anychart.graphics.vector.Text.FontStyle.
fontVariant anychart.graphics.vector.Text.FontVariant | string | undefined Read more at anychart.graphics.vector.Text.FontVariant.
fontWeight number | string | undefined Font weight - https://www.w3schools.com/cssref/pr_font_weight.asp.
hAlign anychart.graphics.vector.Text.HAlign | string | undefined hAling. More at anychart.graphics.vector.Text.HAlign.
height number | string | undefined Text height.
letterSpacing string | undefined Letter spacing of text.
lineHeight string | number | undefined Line height.
opacity number | undefined Color opacity (0 to 1).
selectable boolean | undefined Whether text can be selected.
textIndent number | undefined The text-indent property specifies the indentation of the first line in a text-block.
textOverflow anychart.graphics.vector.Text.TextOverflow | undefined Text overflow. More at anychart.graphics.vector.Text.TextOverflow.
textWrap anychart.graphics.vector.Text.TextWrap | undefined Text wrap. More at anychart.graphics.vector.Text.TextWrap.
vAlign anychart.graphics.vector.Text.VAlign | string | undefined vAlign. More at anychart.graphics.vector.Text.VAlign.
width number | string | undefined Text width.