AnnotationBase Class
File
wijmo.chart.annotation.js
Module
wijmo.chart.annotation
Derived Classes
Shape, Text

Represents the base class of annotations for the AnnotationLayer.

Constructor

constructor

constructor(options?: any): AnnotationBase

Initializes a new instance of the AnnotationBase class.

Parameters
  • options: any Optional

    JavaScript object containing initialization data for the object.

Returns
AnnotationBase

Properties

attachment

Gets or sets the attachment of the annotation.

Type
AnnotationAttachment

isVisible

Gets or sets the visibility of the annotation.

Type
boolean

name

Gets or sets the name of the annotation.

Type
string

offset

Gets or sets the offset of the annotation from the point.

Type
Point

point

Gets or sets the point of the annotation. The coordinates of points depends on the attachment property. See AnnotationAttachment for further description.

Type
DataPoint

pointIndex

Gets or sets the data point index of the annotation. Applies only when the attachment property is set to DataIndex.

Type
number

position

Gets or sets the position of the annotation. The position is relative to the point.

Type
AnnotationPosition

seriesIndex

Gets or sets the data series index of the annotation. Applies only when the attachment property is set to DataIndex.

Type
number

style

Gets or sets the style of the annotation.

Type
any

tooltip

Gets or sets the tooltip of the annotation.

Type
string

Methods

destroy

destroy(): void

Destroy this annotation

Returns
void

render

render(engine: IRenderEngine): void

Render this annotation.

Parameters
Returns
void