[]
        
(Showing Draft Content)

Wijmo_Chart_Interaction.Chartgestures

ChartGestures Class

The ChartGestures control allows the user to zoom or pan on the specified FlexChart.

To use the ChartGestures control, specify the FlexChart control on which to zoom or pan.

 var chartGestures = new ChartGestures(chart);

Heirarchy

Constructors

constructor

  • Initializes a new instance of the ChartGestures class.

    Parameters

    • chart: FlexChartCore

      The FlexChart that allows the user to zoom or pan.

    • Optional options: any

      A JavaScript object containing initialization data for the control.

    Returns ChartGestures

Properties

enable

enable: boolean

Gets or sets the enable of the ChartGestures.

interactiveAxes

interactiveAxes: InteractiveAxes

Gets or sets the interactive axes of the ChartGestures.

mouseAction

mouseAction: MouseAction

Gets or sets the mouse action of the ChartGestures.

posX

posX: number

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.

posY

posY: number

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.

scaleX

scaleX: number

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.

scaleY

scaleY: number

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.

Methods

remove

  • remove(): void

reset

  • reset(): void
  • Reset the axis of the chart.

    Returns void