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

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.SpacingHorizontal, Legend.SpacingVertical, Legend.EquallySpacedItems

Visibility

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

Custom Draw Event

WebChartControl.CustomDrawSeries

See Also