Xceed Chart for WinForms v4.4 Documentation
Welcome to Xceed Chart for WinForms v4.4 / User Guide / Interactivity / Drag Operations / Zoom

In This Topic
    Zoom
    In This Topic

    Zoom drag-mode enables the end user to change the zoom factor of the View object attached to the current chart by simply pressing the left mouse button over the chart and then dragging the mouse. When the user drags the mouse toward the top edge of the control, it will zoom out, and when the user drags the mouse toward the bottom edge, the control will zoom out. 

    You enable zooming by adding a ZoomDragOperation to the InteractivityOperationsCollection:

    VB.NET  

    chartControl1.InteractivityOperations.Clear()

    chartControl1.InteractivityOperations.Add(New ZoomDragOperation())

    C#  
    chartControl1.InteractivityOperations.Clear();
    chartControl1.InteractivityOperations.Add(new ZoomDragOperation());

    Note that because this operation is exclusive, we must also clear the InteractivityOperationsCollection collection.

    Related Examples

    Windows Forms: Interactivity\Drag Operations

    See Also

    ChartControl | View