Hide Comments
Hide Comments

TRSChartAxis.ZoomPixelArea(TCanvasRect) Method

Comments (0)

Zoom the axis in on (or magnify) a portion of the axis' range. The Zoom method accepts a canvas pixel rectangle 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 overloaded Zoom method zooms the axis using chart values instead of canvas rectangle values.
 

Namespace: RSChartPanel

expandingSyntax

Delphi

public 
  procedure ZoomPixelArea( const ClientRect: TCanvasRect ); overload; 
 

Parameters

ClientRect

Type: TCanvasRect

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