vcl-dxchartcore-a933d960.md
Stores settings of the legend pane displayed in a Chart control.
TdxChartLegend = class(
TdxChartCustomLegend
)
A series is displayed in the Chart control’s legend instead of the corresponding diagram’s legend if the ShowInLegend property of the series is set to TdxChartSeriesShowInLegend.Chart (default).
The list below outlines key members of the TdxChartCustomLegend class that allow you to configure chart and diagram legend panes.
VisibleHides or displays the legend pane.TitleSpecifies the legend pane title, and its position and appearance.AppearanceProvides access to general legend appearance settings.ShowCaptions | ShowCheckBoxes | ShowImagesHide or display legend item captions, check boxes, and associated images.DirectionSpecifies the legend pane layout and the order of items in it.AlignmentHorz | AlignmentVertPosition the legend pane horizontally and vertically within the Chart control area.MaxHeightPercent | MaxWidthPercentAdjust legend pane constraints.MaxCaptionWidthSpecifies the maximum caption width (in pixels) in multi-column and narrow vertical legend pane layouts.AssignCopies settings between legend panes.
The Chart control’s Legend property references a TdxChartLegend object.
TObject TPersistent TcxOwnedPersistent TcxOwnedInterfacedPersistent TdxChartVisualElementPersistent TdxChartCustomVisualElement TdxChartCustomLegend TdxChartLegend
See Also