Text Annotation

Top  Previous  Next

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

Text annotations example:

ls_widgets_charts_annotation_text_xy

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

rorationAngle

Float

Rotation angle (in degrees).

Outline Visible

outlineVisible

Data Table

Outline paint for the annotation.

Outline Stroke

outlineStroke

Data Table

Outline stroke for the annotation.

Tool Tip Text

toolTipText

String

The tool tip text for this annotation.