Hide Comments
Hide Comments

Comments (0)

Zoom the axis in on (or magnify) a portion of the axis' range. The Zoom method accepts a rectangle using chart axis coordinates and changes the    ZoomMinimum and    ZoomMaximum properties to zoom the axis into that visual portion of the range. It allows you to change the portion of the axis that is being visually displayed.

The ZoomPixelArea method zooms the axis using canvas rectangle values instead of chart values.
 

Namespace: FMX.RS.ChartPanel

expandingSyntax

Delphi

public 
  procedure Zoom( const ChartRect: TRSRect ); overload; 
 

Parameters

ChartRect

Type: TRSRect

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