WjFlexChartGestures Class

File
wijmo.angular2.js
Module
wijmo/wijmo.angular2.chart.interaction
Base Class
ChartGestures
Show
   

Angular 2 component for the ChartGestures control.

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

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

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

Constructor

Properties

Methods

Constructor

constructor

constructor(chart: FlexChartCore, options?): ChartGestures

Initializes a new instance of the ChartGestures class.

Parameters
Inherited From
ChartGestures
Returns
ChartGestures

Properties

enable

Gets or sets the enable of the ChartGestures.

Inherited From
ChartGestures
Type
boolean

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

interactiveAxes

Gets or sets the interactive axes of the ChartGestures.

Inherited From
ChartGestures
Type
InteractiveAxes

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

mouseAction

Gets or sets the mouse action of the ChartGestures.

Inherited From
ChartGestures
Type
MouseAction

posX

Gets or sets the initial position of the axis X. The value represents initial position on the axis when the Scale is less than 1. Otherwise, the Value has no effect. The Value should lie between 0 to 1.

Inherited From
ChartGestures
Type
number

posY

Gets or sets the initial position of the axis Y. The value represents initial position on the axis when the Scale is less than 1. Otherwise, the Value has no effect. The Value should lie between 0 to 1.

Inherited From
ChartGestures
Type
number

scaleX

Gets or sets the initial scale of axis X. The scale should be more than 0 and less than or equal to 1. The scale specifies which part of the range between Min and Max is shown. When scale is 1 (default value), the whole axis range is visible.

Inherited From
ChartGestures
Type
number

scaleY

Gets or sets the initial scale of axis Y. The scale should be more than 0 and less than or equal to 1. The scale specifies which part of the range between Min and Max is shown. When scale is 1 (default value), the whole axis range is visible.

Inherited From
ChartGestures
Type
number

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

remove

remove(): void

Removes the ChartGestures control from the chart.

Inherited From
ChartGestures
Returns
void

reset

reset(): void

Reset the axis of the chart.

Inherited From
ChartGestures
Returns
void