A newer version of this page is available.
Switch to the current version.
SeriesBase.ShowInLegend Property
Gets or sets a value that specifies whether the data series is represented in the chart control's legend.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v18.2.dll
Declaration
[TypeConverter(typeof(BooleanTypeConverter))]
[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
[XtraSerializableProperty]
public virtual bool ShowInLegend { get; set; }
<TypeConverter(GetType(BooleanTypeConverter))>
<XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)>
<XtraSerializableProperty>
Public Overridable Property ShowInLegend As Boolean
Property Value
Type | Description |
---|---|
Boolean | true to represent the data series in the legend; otherwise, false. |
Remarks
Use the ShowInLegend property to control whether the data series is indicated within the chart control's legend.
Note that if this property is customized at the level of a series template object (which is accessed via the ChartControl.SeriesTemplate/WebChartControl.SeriesTemplate property), it controls the indication of all automatically generated series within the legend of the chart control in the following manner:
- If this property is set to true, each data series from the bound data source (which is specified via the ChartControl.DataSource property) is represented within the legend and can be identified by its color (if legend markers are visible due to the Legend.MarkerVisible property's setting) and its name (which is taken from the data source's field specified via the ChartControl.SeriesDataMember property).
- If the ShowInLegend property is set to false, none of the data series obtained from the chart control's data source is represented within the legend.
Implements
DevExpress.XtraCharts.Native.ICheckableLegendItem.ShowInLegend
See Also
Feedback