TChartSeries.CustomHorizAxis
TChartSeries
property CustomHorizAxis: TChartAxis;
Unit
TeEngine
Description
After adding a new horizontal Custom Axis to a Chart, use CustomHorizAxis to associate the Series to the Custom TChartAxis.
Together with the axis TChartAxis.PositionPercent and "stretching" new properties, now it's possible to have unlimited axes floating anywhere on the chart.
Scroll, zoom, and axis hit-detection also apply to custom-created axes.
Creating extra axes is only allowed at run-time, as some few lines of code are necessary:
Var MyAxis : TChartAxis ;
MyAxis := TChartAxis.Create( Chart1 );
Series2.CustomHorizAxis := MyAxis;
You can modify any property of the new created axes, such as the axis color or axis title:
MyAxis.Axis.Color:=clGreen ;
MyAxis.Title.Caption := 'Extra axis' ;
MyAxis.Title.Angle := 90;