Class: Zoom

.Chart. Zoom

Controls how to zoom chart axes by mouse or touch drag

new Zoom

Parameters:
Name Type Description
chart Tee.Chart The parent chart this zoom object belongs to.
Properties:
Name Type Description
enabled Boolean Allows chart zoom by mouse/touch dragging.
mouseButton Number Defines the mouse button that can be used to zoom (0=Left button, etc).
format Tee.Format Properties to control the appearance of rectangle that appears while dragging.
[direction="both"] String Allows chart zoom in horizontal, vertical or both directions.
Source:
  • ../../src/teechart.js, line 1937

Members

keepAspect

When true, zoom rectangle maintains same width to height proportion of Chart.

Source:
  • ../../src/teechart.js, line 1957