Skip to main content

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