Gets or sets the legend text of a series or data point.
Text of the item in the legend
Visual Basic (Declaration) | |
---|---|
Public Property LegendText As String |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public string LegendText {get; set;} |
Return Value
A string expression representing the legend text. Defaults to a zero-length string.
The following sample will override the default legend text for the second plotted series.
Visual Basic | Copy Code |
---|---|
Imports Dundas.Charting.WinControl |
Pie and doughnut charts by default will display each plotted data point in the legend, and the text for each legend entry is the name of the data point. All other chart types will display plotted series in the legend in the same manner.
This property overrides the default text of legend items (the name of the data points or series).
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family