Hide Comments
Hide Comments

TRSCustomChartPanel.Pan(TRSChartValueType,TRSChartValueType,Boolean,Boolean) Method

Comments (0)

Moves the visual window (or the zoomed window) that the chart panel displays. The zoomed area is not changed. By default, the Pan method uses the    BottomAxis and the    LeftAxis to pan. By changing the UseBottomAxis and UseLeftAxis parameters, you can change which axes are used. The MoveX and MoveY parameters, which are based on chart values, specify the movement amount.

Specifying a positive MoveX amount moves the zoomed window right and a negative amount moves it left. Specifying a positive MoveY amount moves the zoomed window up and a negative amount moves it down.

Use the overloaded Pan method to move the visual window using canvas pixel values.

noteNote

The Pan method does nothing if no chart axis is zoomed (Zooming = False).

Namespace: FMX.RS.ChartPanel

expandingSyntax

Delphi

public 
  procedure Pan( MoveX, MoveY: TRSChartValueType; UseBottomAxis: Boolean = True; UseLeftAxis: Boolean = True ); overload; virtual; 
 

Parameters

MoveX

Type: TRSChartValueType

MoveY

Type: TRSChartValueType

UseBottomAxis

Type: Boolean

UseLeftAxis

Type: Boolean

expandingExamples

The following code zooms the chart panel and then pans right:

Delphi

begin
   RSChartPanel1.Zoom( RSRect(0, 0, 100, 100) );
   RSChartPanel1.Pan( 10, 0 );
 end;

expandingSee Also

Comments (0)

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