TRSCustomChartPanel.Pan(TRSChartValueType,TRSChartValueType,Boolean,Boolean) Method |
Scroll Prev Top Next More |
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.
Note |
---|
The Pan method does nothing if no chart axis is zoomed (Zooming = False). |
Namespace: FMX.RS.ChartPanel
Delphi |
public |
Parameters
MoveX
Type: TRSChartValueType
MoveY
Type: TRSChartValueType
UseBottomAxis
Type: Boolean
UseLeftAxis
Type: Boolean
The following code zooms the chart panel and then pans right:
|