Hide Comments
Hide Comments

TRSCustomChartPanel.ZoomPixelArea(TCanvasRect,Boolean,Boolean) Method

Comments (0)

Zooms the chart panel to the desired rectangle. Usually, it zooms the    BottomAxis and the    LeftAxis to change displayed area for charts associated with those axes. Set the UseBottomAxis parameter to False to use the TopAxis and the UseLeftAxis parameter to False to use the    RightAxis. The ZoomPixelArea method accepts a pixel coordinate rectangle within the chart panel, converts that rectangle to a chart value coordinate rectangle for the desired axes, and zooms the visual window to that rectangle.

Use the Zoom method to zoom the visual window by using a chart value coordinate rectangle directly.

The ZoomPixelArea method uses the FMX.RS.ChartPanel.TRSChartAxis .Zoom method to change the ZoomMinimum and ZoomMaximum properties of the specified horizontal and vertical axes.
 

Namespace: FMX.RS.ChartPanel

expandingSyntax

Delphi

public 
  procedure ZoomPixelArea( const ClientRect: TCanvasRect; UseBottomAxis: Boolean = True; UseLeftAxis: Boolean = True ); overload; virtual; 
 

Parameters

ClientRect

Type: TCanvasRect

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.ZoomPixelArea( CanvasRect(0, 0, 100, 100) );
   RSChartPanel1.Pan( 10, 0 );
 end;

expandingSee Also

Comments (0)

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