Legend.Visibility Property
Specifies whether to show the legend on a chart.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v18.2.dll
Declaration
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
[XtraSerializableProperty]
public DefaultBoolean Visibility { get; set; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
<XtraSerializableProperty>
Public Property Visibility As DefaultBoolean
Property Value
Type | Description |
---|---|
DefaultBoolean | Default - the legend visibility is defined according to the adaptive layout algoritm when the chart is resized; True - the legend is visible; False - the legend is hidden. The default is DefaultBoolean.Default. |
Remarks
Use the Visibility property to show or hide the legend within a chart area.
For more information, refer to Legends.
NOTE
The Default returned value of the Visibility property is in affect when the adaptive layout feature is enabled. So, ensure the ChartControl.AutoLayout property is set to true.
The adaptive layout feature is used to maintain a better chart appearance and layout when the chart becomes smaller.