Series.Legend Property

.NET Framework (current version)
 

Gets or sets the name of the series associated with the Legend object.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

[BindableAttribute(true)]
public string Legend { get; set; }

Property Value

Type: System.String

A string value that represents the name of a Legend object.

When a series is added at both design time and run time, it is automatically assigned to the default Legend object.

If you do not want the series shown in a legend, set this property to a zero-length string, or set the IsVisibleInLegend property to false.

.NET Framework
Available since 4.0
Return to top
Show: