Skip to main content

TdxChartCustomDiagram.Legend Property

Provides access to the diagram’s legend pane settings.

Declaration

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.

VCL Chart Control: Diagram Legend Check Boxes

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