AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated 7.4.1 version of this document. Switch to the 8.4.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.
NameTypeDescription
colorstring | goog.color.names | undefinedColor. https://www.w3schools.com/html/html_colors.asp.
decorationanychart.graphics.vector.Text.Decoration | string | undefinedRead more at anychart.graphics.vector.Text.Decoration.
directionanychart.graphics.vector.Text.Direction | string | undefinedRead more at anychart.graphics.vector.Text.Direction.
fontFamilystring | undefinedhttps://www.w3schools.com/cssref/pr_font_font-family.asp.
fontSizestring | number | undefinedFont size.
fontStyleanychart.graphics.vector.Text.FontStyle | string | undefinedRead more at anychart.graphics.vector.Text.FontStyle.
fontVariantanychart.graphics.vector.Text.fontVariant | string | undefinedRead more at anychart.graphics.vector.Text.FontVariant.
fontWeightnumber | string | undefinedhttps://www.w3schools.com/cssref/pr_font_weight.asp.
hAlignanychart.graphics.vector.Text.HAlign | string | undefinedhAling. More at anychart.graphics.vector.Text.HAlign.
heightnumber | string | undefinedText height.
letterSpacingstring | undefinedLetter spacing of text.
lineHeightstring | number | undefinedLine height.
opacitynumber | undefinedColor opacity (0 to 1).
selectableboolean | undefinedWhether text can be selected.
textIndentnumber | undefinedThe text-indent property specifies the indentation of the first line in a text-block.
textOverflowanychart.graphics.vector.Text.TextOverflow | undefinedText overflow. More at anychart.graphics.vector.Text.TextOverflow.
textWrapanychart.graphics.vector.Text.TextWrap | undefinedText wrap. More at anychart.graphics.vector.Text.TextWrap.
vAlignanychart.graphics.vector.Text.VAlign | string | undefinedvAlign. More at anychart.graphics.vector.Text.VAlign.
widthnumber | string | undefinedText width.