Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxChartCustomDiagram.Legend Property

Provides access to the diagram’s legend pane settings.

#Declaration

Delphi
property Legend: TdxChartDiagramLegend read; write;

#Property Value

Type Description
TdxChartDiagramLegend

Stores diagram legend settings.

#Remarks

A diagram can display a legend pane populated with captions of those series in the diagram whose ShowInLegend properties are set to TdxChartSeriesShowInLegend.Diagram. The diagram displays no legend pane if it has no such series or the Legend.Visible property is set to False.

 VCL Chart Control: The Diagram Legend Pane

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).

VCL Chart Control: The Chart Legend Pane

#End-User Interaction Options

A user can click check boxes of individual legend items to hide or display the corresponding series if its CheckableInLegend property is set to True.

You can set the Legend.ShowCheckBoxes property to False to hide these check boxes. Refer to the TdxChartDiagramLegend class description for detailed information on available options.

Note

Simple diagram series display values instead of captions in a diagram or chart legend.

See Also