Hide Comments
Hide Comments

Comments (0)

The ZoomMaximum and    ZoomMinimum properties allow you to programmatically zoom the chart axis to a portion of the    Maximum -    Minimum range. It allows you to change the portion of the axis that is being visually displayed. If the chart axis is not being zoomed, then these properties will equal the chart axis range (and Zooming return False).

Use ZoomMaximum and ZoomMinimum to zoom the chart axis or use the Zoom method.
 

Namespace: RSChartPanel

expandingSyntax

Delphi

published
  property ZoomMinimum: TRSChartValueType read FZoomMinimum write SetZoomMinimum;
 

Property Value

Type: TRSChartValueType

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