TCustomChartLegend.TopPos
TCustomChartLegend
property TopPos: Integer;
Unit
Chart
Description
Default Value: 10 ( % )
The TopPos property specifies the Legend's top (or left) position as a percentage of the total chart height (or width).
When the TCustomChartLegend.Alignment property is laLeft or laRight (vertical Legend), the TopPos property increments the Top TCustomChart.Legend position by a percentage of the total chart height.
For laTop or laBottom Legend alignments (horizontal Legend), the TopPos property increments the Legend's Left position.
You can customize the Legend position setting to True the TTeeCustomShapePosition.CustomPosition property and manually changing the TTeeCustomShapePosition.Left and TTeeCustomShapePosition.Top positions to fixed values.
Also, the Chart TCustomChart.OnGetLegendRect event can be used to supply specific Legend position and dimensions.