Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SeriesName Property

LegendItem.SeriesName Property

Gets or sets the name of the Series associated with a default legend item.

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

public string SeriesName { get; set; }

Property Value

Type: System.String
A string value that determines the name of the series associated with a default legend item. The default value is a zero-length string.

This property should only be used in the CustomizeLegend event, to determine which data series a default legend entry represents.

The SeriesName property applies to all charts except pie and sphere charts; their default legend items correspond to plotted data points, and not to plotted series. When you deal with pie and sphere charts, use the SeriesPointIndex property instead.

This property should not be set by the developer.


This property is applicable to the entire LegendItem.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

© 2015 Microsoft