Text Annotation

A text annotation that draws a small text label at some (x, y) location on a chart.

Text annotations example:

Properties

Property

Name

Type

Description

X

x

Float

X-value for the annotation.

Y

y

Float

Y-value for the annotation.

Paint

paint

Data Table

Paint used to draw the text.

Background Paint

backgroundPaint

Data Table

Paint used to fill the annotation background.

Outline Paint

outlinePaint

Data Table

Paint used to draw the annotation outline.

Text

text

String

Text displayed by the annotation.

Font

font

Data Table

Font used to display the text.

Text Anchor

textAnchor

String

Anchor point for the text. This will be aligned to the (X, Y) point on the chart.

Rotation Anchor

rorationAnchor

String

Text anchor point about which any rotation is performed.

Rotation Angle

rotationAngle

Float

Rotation angle (in degrees).

Outline Visible

outlineVisible

Data Table

Flag controlling visibility of the annotation outline.

Outline Stroke

outlineStroke

Data Table

Outline stroke for the annotation.

Tool Tip Text

toolTipText

String

The tool tip text for this annotation.

Was this page helpful?