WjFlexChartAnnotationLayer Class

File
wijmo.angular2.js
Module
wijmo/wijmo.angular2.chart.annotation
Base Class
AnnotationLayer
Show
   

Angular 2 component for the AnnotationLayer control.

The wj-flex-chart-annotation-layer component must be contained in one of the following components: WjFlexChart or WjFinancialChart.

Use the wj-flex-chart-annotation-layer component to add AnnotationLayer controls to your Angular 2 applications. For details about Angular 2 markup syntax, see Angular 2 Markup.

The WjFlexChartAnnotationLayer component is derived from the AnnotationLayer control and inherits all its properties, events and methods.

The wj-flex-chart-annotation-layer component may contain the following child components: WjFlexChartAnnotationText , WjFlexChartAnnotationEllipse , WjFlexChartAnnotationRectangle , WjFlexChartAnnotationLine , WjFlexChartAnnotationPolygon , WjFlexChartAnnotationCircle , WjFlexChartAnnotationSquare and WjFlexChartAnnotationImage.

Constructor

Properties

Methods

Constructor

constructor

constructor(chart: FlexChartCore, options?): AnnotationLayer

Initializes a new instance of the AnnotationLayer class.

Parameters
Inherited From
AnnotationLayer
Returns
AnnotationLayer

Properties

initialized

This event is triggered after the component has been initialized by Angular, that is all bound properties have been assigned and child components (if any) have been initialized.

Type
EventEmitter

isInitialized

Indicates whether the component has been initialized by Angular. Changes its value from false to true right before triggering the initialized event.

Type
boolean

items

Gets the collection of annotation elements in the AnnotationLayer.

Inherited From
AnnotationLayer
Type
ObservableArray

wjProperty

Gets or sets a name of a property that this component is assigned to. Default value is ''.

Type
string

Methods

created

created(): void

If you create a custom component inherited from a Wijmo component, you can override this method and perform necessary initializations that you usually do in a class constructor. This method is called in the last line of a Wijmo component constructor and allows you to not declare your custom component's constructor at all, thus preventing you from a necessity to maintain constructor parameters and keep them in synch with Wijmo component's constructor parameters.

Returns
void

getItem

getItem(name: string): AnnotationBase

Gets the annotation element by name in the AnnotationLayer.

Parameters
Inherited From
AnnotationLayer
Returns
AnnotationBase

getItems

getItems(name: string): Array

Gets the annotation elements by name in the AnnotationLayer.

Parameters
Inherited From
AnnotationLayer
Returns
Array