Hide Comments
Hide Comments

TRSChartAxis.Zoom(TRSChartValueType,Single) Method

Comments (0)

Zoom a specific part of the axis range by specifying the center (in chart values, not pixel values) and zoom magnification amount. The Zoom method 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 overloaded Zoom method zooms the axis using chart values. The ZoomPixelArea method zooms the axis using canvas rectangle values instead of chart values.
 

Namespace: FMX.RS.ChartPanel

expandingSyntax

Delphi

public 
  procedure Zoom( const Center: TRSChartValueType; ZoomAmount: Single ); overload; 
 

Parameters

Center

Type: TRSChartValueType

ZoomAmount

Type: Single

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