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 | |
---|---|
|
C# | |
---|---|
chartControl1.InteractivityOperations.Clear(); |
Note that because this operation is exclusive, we must also clear the InteractivityOperationsCollection collection.
Related Examples
Windows Forms: Interactivity\Drag Operations