TeEngine.TCustomAxisPanel.GetAxisSeries
 
 
 


TCustomAxisPanel.GetAxisSeries
TCustomAxisPanel

function GetAxisSeries(Const Axis: TChartAxis): TChartSeries;

Unit
TeEngine

Description
This function returns the first Series that depends on the specified Axis. If no Series depend on Axis, the nil value is returned.

By default, each Series is assigned to depend on Left and Bottom Axis. You can set which Horizontal and Vertical axis or Custom axes will depend on each Series. By default, all axes are set to be TChartAxis.Automatic. That means TeeChart will calculate the Maximum and Minimum values for each axis based on which Series are set to depend on it.
For example, if you want to mix both TChartValueList.DateTime and NON-DateTime series in the same chart, you will need to assign a different axis to the series :

Example:

Series1.XValues.DateTime := True ;
Series1.HorizAxis := aBottomAxis ;
Series2.XValues.DateTime := False ;
Series2.HorizAxis := aTopAxis ;

This will scale the X Series values accordingly.

You can also do the same for the vertical axis using the Series TChartSeries.VertAxis property:

Series1.VertAxis := aLeftAxis ;
Series2.VertAxis := aRightAxis ;

You can control if Chart Axis will be scaled automatically or you can set the Axis TChartAxis.Maximum, TChartAxis.Minimum and TChartAxis.Increment manually.

If you allow users to TCustomTeePanelExtended.Zoom or TCustomTeePanelExtended.OnScroll the Chart, then the Axis will be scaled or scrolled.



Send us Help Feedback. Copyright 1995-2024 © by Steema Software. All Rights Reserved.