TCustomChartLegend.TopPos

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 Alignment property is laLeft or laRight (vertical Legend), the TopPos property increments the Top 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 CustomPosition property and manually changing the Left and Top positions to fixed values.

Also, the Chart OnGetLegendRect event can be used to supply specific Legend position and dimensions.