Skip to main content
A newer version of this page is available. .

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

Legend.Title, Legend.CustomItems.

Appearance

Legend.Antialiasing, Legend.BackColor, Legend.BackImage, Legend.Border, Legend.FillStyle, Legend.Font, Legend.Shadow, Legend.TextColor

Alignment

Legend.AlignmentHorizontal, Legend.AlignmentVertical

Entries Layout

Legend.Direction, Legend.MaxHorizontalPercentage, Legend.MaxVerticalPercentage

Spacing

Legend.HorizontalIndent, Legend.Padding, Legend.TextOffset, Legend.VerticalIndent, Legend.EquallySpacedItems

Visibility

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

Custom Draw Event

ChartControl.CustomDrawSeries

See Also