Zoom Interactor
A zoom interactor has the following basic characteristics:
Class |
|
Registered name |
“ChartZoom” |
Key or Button |
- Left mouse button to zoom in - Shift + Left mouse button to zoom out |
Action |
Lets the user trigger a zoom-in or a zoom-out command by dragging a box within the data display area of a chart. This box indicates the area to be zoomed in or zoomed out. |
The mouse button used to perform the zoom-in and zoom-out operations is the left mouse button by default. However, this button can be changed by passing another button as a parameter to the constructor of the zoom interactor.
Each zoom-in/zoom-out operation can be broken down into several steps to render a smooth transition between the original and the final visual state of the displayed data. When a zoom interactor instance is created, the default number of steps is set to 0. You can specify the number of steps by means of the setZoomSteps method.