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

Legend

The Legend can be used to help end-users identify different chart elements such as series, constant lines, strips. The ShowInLegend property of such elements controls whether an entry is displayed in the legend for the item. Each legend entry can be displayed using its corresponding legend marker and text identifying the entry. For more detailed information, refer to Legends.

Legend

The table below lists the main properties which affect the element’s appearance and functionality:

Availability

The ChartControl.Legend and ChartControl.Legends properties of a chart control.

Elements

LegendBase.Title, LegendBase.CustomItems.

Appearance

LegendBase.EnableAntialiasing, LegendBase.BackColor, LegendBase.BackImage, LegendBase.Border, LegendBase.FillStyle, LegendBase.DXFont, LegendBase.Shadow, LegendBase.TextColor

Alignment

LegendBase.AlignmentHorizontal, LegendBase.AlignmentVertical

Entries Layout

LegendBase.Direction, LegendBase.MaxHorizontalPercentage, LegendBase.MaxVerticalPercentage

Spacing

LegendBase.HorizontalIndent, LegendBase.Padding, LegendBase.TextOffset, LegendBase.VerticalIndent, LegendBase.EquallySpacedItems

Visibility

LegendBase.Visibility (ConstantLine.ShowInLegend, SeriesBase.ShowInLegend, Strip.ShowInLegend)

Custom Draw Event

ChartControl.CustomDrawSeries

See Also