Gets or sets a value that determines if a series or data point has an associated item displayed in the legend.
Indicates that item is shown in the legend.
Visual Basic (Declaration) | |
---|---|
Public Property ShowInLegend As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public bool ShowInLegend {get; set;} |
Return Value
True if the data point or series is displayed in the legend, otherwise False. Defaults to True.
The following sample will set the ShowInLegend property for the second plotted series so that it does not display a default legend item.
Visual Basic | Copy Code |
---|---|
Imports Dundas.Charting.WinControl |
Pie and doughnut charts by default will display each data point in the legend, with each legend entry displaying the name of the data point along with an icon that uses the color of the point. All other chart types will display series in the legend in the same manner.
To display or hide these series/data points in the legend set this property.
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