Skip to main content

TcxGridChartView.Legend Property

Specifies the chart legend for the View.

Declaration

property Legend: TcxGridChartLegend read; write;

Property Value

Type
TcxGridChartLegend

Remarks

Use the Legend property to specify the chart legend which can be displayed in the View for the currently active diagram to provide a key to what is displayed in the diagram.

A TcxGridChartLegend object represents a chart legend in a Chart View. The TcxGridChartLegend class provides properties and methods for specifying the appearance aspects of a chart legend, arranging it within the chart and determining its current position within the chart. All the properties which control the appearance aspects such as the position and orientation of the chart legend are initialized with default values that provide a standard appearance for charts. Use the Chart View’s Legend property and the diagram’s Legend property to access the chart legend’s appearance options.

Note

When there isn’t any series (series values) displayed within a diagram (the Visible property of the series is set to False) the chart legend is hidden as it isn’t required.

See Also