AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated v7 version of this document. Switch to the v8 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 | 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 | undefinedFont family https://www.w3schools.com/cssref/pr_font_font-family.asp.
fontSizestring | number | undefinedFont size. More at anychart.graphics.vector.Text#fontSize.
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 | undefinedFont weight - https://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.