ASP.NET MVC Controls | ComponentOne
In This Topic
    ChartGestures Class
    In This Topic
    File
    wijmo.chart.interaction.js
    Module
    wijmo.chart.interaction

    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);
    

    Constructor

    Properties

    Methods

    Constructor

    constructor

    constructor(chart: FlexChartCore, options?): ChartGestures
    

    Initializes a new instance of the ChartGestures class.

    Parameters
    Optional

    A JavaScript object containing initialization data for the control.

    Returns
    ChartGestures

    Properties

    enable

    Gets or sets the enable of the ChartGestures.

    Type
    boolean

    interactiveAxes

    Gets or sets the interactive axes of the ChartGestures.

    Type
    InteractiveAxes

    mouseAction

    Gets or sets the mouse action of the 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.

    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.

    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.

    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.

    Type
    number

    Methods

    remove

    remove(): void
    

    Removes the ChartGestures control from the chart.

    Returns
    void

    reset

    reset(): void
    

    Reset the axis of the chart.

    Returns
    void