Skip to main content

Legend

The Legend can be used to help end-users identify different chart elements such as series, constant lines, and 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 with its corresponding legend marker and text that identifies the entry. Refer to the following help topic for details: Legend.

Legend

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

Availability

The WebChartControl.Legend property of a chart control.

Appearance

LegendBase.EnableAntialiasing, LegendBase.BackColor, LegendBase.BackImage, LegendBase.Border, LegendBase.FillStyle, LegendBase.Font, 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

WebChartControl.CustomDrawSeries

See Also