ZoomDirection

 

This property sets the direction (X-axis, Y-axis, or both) in which data zooming operations are performed by doZoomIn() and doZoomOut(). If the chart is a dual Y-axes chart and ZoomDirection is set to zero or two, zooming is done on BOTH the Y1 and Y2 axes.

Data Type:

Integer

Range:

0...2

 

0=

zoom in on both directions (the default)

 

1=

zoom in on just the X-axis (or ordinal axis if applicable)

 

2=

zoom in on just the Y-axis

Default:

Zero

Syntax:

setZoomDirection ( value );

 

value = getZoomDirection ();

Example:

perspective1.setGraphType(61);
perspective1.setZoomDirection(1);
perspective1.setZoomPercentage(10);
perspective1.doZoomIn();

 

 

perspective1.setZoomDirection(2);
perspective1.doZoomIn();

 

Notes:

This property is not currently supported in 3D graph types.

Also See:

ZoomPercentage, doZoomIn(), doZoomOut()

ZoomPercentage

 

This property specifies the percentage/amount of data zooming that will done when the doZoomIn() and/or doZoomOut() methods are used. The ZoomDirection property specifies the direction (X-axis, Y-axis, or both) in which data zooming is performed.

Data Type:

Real (double)

Range:

Any real number

Default:

50.0

Syntax:

setZoomPercentage ( value );

 

value = getZoomPercentage();

Example:

perspective1.setGraphType(61);
perspective1.setZoomPercentage(10);
perspective1.doZoomIn();

 

 

perspective1.clearZoomList();
perspective1.setZoomPercentage(20);
perspective1.doZoomIn();

 

Notes:

This property is not currently supported in 3D graph types.

Also See:

ZoomDirection(), doZoomIn(), doZoomOut()