Hide Comments
Hide Comments

TRSChartAxis.Pan(TRSChartValueType) Method

Comments (0)

Moves the visual window, specified by the    ZoomMinimum and    ZoomMaximum properties, by the amount. The Amount parameter is based on chart axis values. Specifying a positive amount moves the zoomed window right and a negative amount moves it left.

Use the overloaded Pan method to move the visual window using pixel amounts directly.

The Pan method does nothing if the chart axis is not zoomed in (    Zooming = True).
 

Namespace: RSChartPanel

expandingSyntax

Delphi

public 
  procedure Pan( Amount: TRSChartValueType ); overload; 
 

Parameters

Amount

Type: TRSChartValueType

expandingExamples

The following example shows how to zoom and pan within the axis:

Delphi

begin
   // first, define the range of the axis
   RSChartPanel1.BottomAxis.Minimum := 0;
   RSChartPanel1.BottomAxis.Maximum := 100;
 
   // let's zoom the bottom axis to 25 to 75
   RSChartPanel1.BottomAxis.Zoom( RSRect( 25, 0, 75, 0 ) );
   RSChartPanel1.BottomAxis.UnZoom;
 
   // This is equivalent
   RSChartPanel1.BottomAxis.ZoomMinimum := 25;
   RSChartPanel1.BottomAxis.ZoomMaximum := 75;
 
   // now, lets pan the zoomed window to the right
   RSChartPanel1.BottomAxis.Pan( 10.0 );
 end;

expandingSee Also

Comments (0)

RiverSoftAVG Charting Component Suite (RCCS) © 2005-2015, Thomas G. Grubb