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 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 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 VertAxis property:
Series1.VertAxis := aLeftAxis ;
Series2.VertAxis := aRightAxis ;
You can control if Chart Axis will be scaled automatically or you can set the Axis Maximum, Minimum and Increment manually.
If you allow users to Zoom or Scroll the Chart, then the Axis will be scaled or scrolled.